I am having trouble with PIP right now. When I installed python, I check the box to install pip together. Python itself works fine, but PIP does not work. Whenever I type pip in command line on Windows (no matter 8.1 or 10, I just fallback and re-upgrade my laptop), it will do nothing but keep freezing at this point and even ctrl-C is not working.
What should I do to solve this problem? I've tired to resintall python on 2.7.9, 2.7.10, 3.4.3, 3.5, they all have same problem, it seems not the python but some dll is missing(I guess).
What it looks like when freezing
What it looks like when calling with -v and install package('Django')
Try python -m pip install Django. I had the same problem with pip today and it worked for me.
Check out the log file created by the pip whenever you invoke the pip command. The log file is situated generally at
C:\Users\user_name\pip
The notepad file will be created and you can verify what is missing
Related
probably was asked 100 times but I will try once again ( maybe will get a simple answeR)
I used the commands:
url https://bootstrap.pypa.io/get-pip.py -o get-pip.py
python3 get-pip.py
from a mac terminal to install pip. When I am going to the IDLE shell window and I am typing :
pip3 install numpy
I am getting a syntax error even though it's supposed to work.
Can somebody explain to me what is the issue?
I am not keen on downloading Anaconda as I like to keep my environment simple enough.
I am working with a mac notebook. any help will be most appreciated.
Thanks, YK
The IDLE shell window is a Python interpreter and only understand python syntax. Since pip3 install numpy is not valid Python, you get a syntax error. Instead, you need to open Terminal and type the command there.
You cant install packages through the python idle.
Try installing numpy through your mac terminal.
If it still does not work check if pip is even installed by pip --version or pip3 --version. The reason that downloading a package in the python IDLE does not work is because the python IDLE only understands valid python code(it is a python interpreter), and because pip3 install numpy is not python code it does not work
I've coded a game in Pygame using Pycharm, and I want to make it into a downloadable desktop application so that other people can download and use it even if they do not have python or the necessary files. The problem is I don't know how to. I've heard of py2exe and py2app before. I tried py2exe but then realized that .exe was for windows, and I was using a Mac. I read the py2app documentation, but it was very confusing and hard to understand, and none of the things they said worked. They said to use the pip command to install py2app inside the terminal, but I tried it and it said that it did not recognize the pip command. Can someone please help? Thanks!
Sorry if this question is long. I am trying to tell as much information as possible.
You can use pyinstaller if you package the application in Mac OS it will run on Mac.
Click here for instruction on how to install the package and use it.
Which installation of Python do you use? I had bad experience with Homebrew when it came to packaging, then I've removed it and switched to Python3.9 downloaded directly from python.org and everything works well now.
Depending on your Python installation, it is possible that you don't have pip installed on your computer. Via terminal, you can check it using
python -m pip --version
and you should get a response of this type:
pip X.Y.Z from .../site-packages/pip (python X.Y)
If you don't have pip, you can either re-install Python as mentioned above, or you can just install pip using these instructions.
As soon as you have pip installed, you can install py2app using
pip install py2app
Python3.6 installs PIP but it is unreachable as it is installed. There is no code which will invoke in the state that it is installed. I have read every advice possible on this issue without success!
Not even the upgrade will work...
user#loco:~/devstack$ pip install --upgrade pip
Yes, Python3.6 installs PIP but it is unreachable as it is installed. if there is a way to trigger the installed PIP it is a mystery to me! After much agony, I have found a way to update that installed version, which is PIP version 9.xxx. Here is what worked for me.
root#bx:/usr/local/lib/python3.6/site-packages # python -m pip install --upgrade pip
That command created a PIP which now works properly from any location on my FreeBSD server! Delivered by the Python 3.6 install the PIP only works by invoking Python first. Once invoked that way it updates to version 9 with the latest. In my case, it was version 19.xxx. What is interesting is that it immediately became global and accessible from everywhere, so no need to play with the ports etc.
Clearly, the tools installed simply do not work properly, as installed with Python3.6. The only way to run them is to invoke Python and the desired python files as you can see in the command issued. Once the update is called, however, the new PIP works globally without having to invoke Python3.6 explicitly...
P.S. Keep in mind that if your command "python" invokes python2.7 you will not be able to complete your upgrade. For that you will have to mess with your ports or invoke the command I supplied with Python3.6 or whatever invokes your version 3.x python.
I have experiencing a problem when installing pywin32 for python 3.5 to my windows 7 PC. The problem is, installation wizard stating that I have no any python versioned as 3.5 in my registery.
My pywin32 file is downloaded from here => pywin32-220.win-amd64-py3.5.exe.
The thing is, when I run python -V code line, I am able to see that I've python 3.5.2 on my PC.
So I don't understand that is the real problem is. Did I get something wrong in logical way?
Any help will be greatly appreciated.
I strongly suggest you delete everything about python on your computer (do not forget to delete related PATH variables) and install Anaconda. You will be able to create several environments and much more.
You can find it in the link below;
https://www.continuum.io/downloads
Export in regedit HKLM\SOFTWARE\Python\PythonCore\3.5-32 and subkeys Replace in an editor "3.5-32" by "3.5" Import the resulting registry file again (by doubleclicking on it).
use "py -m pip install pypiwin32" instead of "py -m pip install pywin32"/"pip install pywin32".
However, I found that pypiwin32 installs version 219. Pywin32's lates version is 221.
I recently formatted my hard drive and got rid of Windows and went to Linux. I had a program that used to work fine before the reformat but isn't working fine now.
I believe it was written for 3.4 and not 2.7 since I used import tkinter and not import Tkinter. In either case the program won't run now that I have made the switch over. In 2.7 it does nothing...it acts like it has run through the code and then stops and gives me back the cursor when it should be popping up a t/Tkinter window displaying a graph. In 3.4 I get the error saying numpy isn't installed.
When I apt-cache policy python-numpy it comes up showing it 1:1.8.2 is installed. When I do the same for scipy it shows 0.13.3 is installed. Seeing from other websites when I check for cython it shows 0.20.1+git90-gee6e38e is installed. When I check for tk it comes up 8.6.0 is installed.
I'm a bit lost. Why I do get the error code saying numpy isn't found when I got to run the program yet it is installed. What do I have to do to get this program back up and running again.
I think you have the librairies installed for Python 2... Did you use pip to install the librairies ?
Try :
pip3 install numpy
And same for your other librairies.
If you use Ubuntu then you have 2 versions of python executables - python and python3. So I think you need to install dependencies for python3 version by sudo pip3 install numpy or sudo apt-get install python3-numpy if it exists in repos.