I've been using pycharm for a while now and I haven't really run into any problems until now, I just started a new project using Pygame and I started up pycharm and found that I could no longer install pygame. I have used it before in pycharm and had no problem. When I try to use pip I get this error:
Command "python setup.py egg_info" failed with error code 1 in C:\Users\Alarm-1202\AppData\Local\Temp\pip-install-xdvgbolk\pygame\
I have tried installing it outside pycharm and that works fine but it seems I don't have the same permissions inside the pycharm venv.
I think the issue was caused by an older version of pip which I didn't manage to fix but I could install pygame using easy_install instead.
After opening pycharm terminal:
python -m pip install -U --force-reinstall pip
pip install your_package_name
Related
After installing Python, I am now trying to install the pipenv dependency by running this command in the terminal python 3.8 -m pip install --upgrade pip pipenv. However, after attempting to execute the command, I receive this error zsh: command not found: python. I find it odd because Python is definitely installed. I've tried uninstalling then reinstalling the app, but I've had no success.
Try using command to run the environment python3 ...
I think I broke my terminal. For some reason I am unable to use pip install to install anything on my Macbook Pro.
When I try to install such as
pip install Flask
I get
zsh: abort pip install Flask
I've tried both on pip and pip, but I get the same error on both.
Now I am unable to install any python module. I thought it was due to Bash -> zsh from Catalina update but when I changed it to Bash and tried the same, I get the same result.
Any idea how I can fix this? I am unable to do any python work due to needed modules unable to being install now
setting DYLD_LIBRARY_PATH before installing any packages with pip solved the issue for me:
export DYLD_LIBRARY_PATH=/usr/local/Cellar/openssl/1.0.2t/lib
(adjust for a valid openssl path in your system)
I found the solution in this github issue.
I'm new to Python and have been trying to install Jupyter packages with pip.
My command line throws me this Exception
Command "python setup.py egg_info" failed with error code 1 in
C:\Users\TOSHIB~1\AppData\Local\Temp\pip-install-spdc68do\tornado\
Happens when I do pip install jupyter. How can I solve this?
I already did python -m pip install --upgrade pip and pip install --upgrade setuptools.
Looks like the root cause is that jupyter depends on tornado, but the tornado install is failing.
It could be a lib64 issue and pip install -U wheel might do the trick.
Could also just be down to tornado requiring a C/C++ compiler you don't have installed. Anaconda comes with jupyter notebook and has a simple windows installer, so that seems like the easiest path.
Is there any way to install requests-kerberos on Windows?
When I try to install it with pip I have the following error:
py -m pip install requests-kerberos
ImportError: No module named 'commands'
Command "python setup.py egg_info" failed with error code 1 in C:\Users\user1\AppData\Local\Temp\pip-build-n8s_inn\kerberos
I would be grateful if anyone knew another kerberos module. I'm using Python 3.4 and Windows 8.
Best regards.
The commands module was deprecated in python 2.6.
Thus, the issue appears to be a problem with your pip installation, and not with requests-kerberos.
There are a few things you can try, but I would focus on ensuring pip is working correctly. While you could install the package manually, you are really just pushing the pip problem down the road until the next time you install a package.
Ensure pip is installed correctly.
Use the pip command to ensure you are running pip in the python 3.4 context: (Note, this is my output, yours will be different because you are on Windows and running 3.4)
$ pip --version
pip 1.5.6 from /Library/Python/2.7/site-packages/pip-1.5.6-py2.7.egg (python 2.7)
Additional information about pip can be found here.
Download and install manually
Download the package manually from the pypi repo.
Download the .tar.gz
Extract the tar.gz and run python setup.py install
Im trying to run a pip install on a pip_requirements.txt (readthedocs local install) file in Cygwin within a virtualenv and am running into some issues.
Python version:Python 2.7.8
pip version: pip 6.0.8
virtualenv: 12.0.7
Here is the console output.
Whats odd is that it cannot find the directory and never creates the temp directory. This install works fine on linux, I am just running into issues on the windows box. Any help would be greatly appreciated!
Try the following command:
python -m pip install --upgrade --force pip