I\'m installing several Python packages in Ubuntu 12.04 using the following requirements.txt
file:
numpy>=1.8.2,<2.0.0
matplotlib>=1.3.
I got this error while installing awscli
on Windows 10 in anaconda (python 3.7).
While troubleshooting, I went to the answer https://stackoverflow.com/a/49991357/6862405 and then to https://stackoverflow.com/a/54582701/6862405. Finally found that I need to install the libraries PyOpenSSL
, cryptography
, enum34
, idna
and ipaddress
. After installing these (using simply pip install
command), I was able to install awscli
.
I had installed python3 but my python in /usr/bin/python was still the old 2.7 version
This worked (<pkg>
was pyserial
in my case):
python3 -m pip install <pkg>
Use Command Prompt, and then select Run as administrator.
Upgrade the pip version
To upgrade PIP, type this command, and then press Enter:-
python.exe -m pip install --upgrade pip
Go Back to python path C:\Users\Jack\AppData\Local\Programs\Python\Python37\Scripts
Type jupyter notebook
You will be redirected to http://localhost:8888/undefined/tree - Jupyter Home Page
Hope it helps !!!!!!!!!!!
After 2 hours of searching, I found a way to fix it with just one line of command. You need to know the version of the package (Just search up PACKAGE version).
Command:
python3 -m pip install --pre --upgrade PACKAGE==VERSION.VERSION.VERSION
Not always, but in some cases the package already exists. For example - getpass. It is not listed by "pip list" but it can be imported and used:
If I try to pip install getpass I get the following error: "Could not find a version that satisfies the requirement getpass"
This approach (having all dependencies in a directory and not downloading from an index) only works when the directory contains all packages. The directory should therefore contain all dependencies but also all packages that those dependencies depend on (e.g., six
, pytz
etc).
You should therefore manually include these in requirements.txt
(so that the first step downloads them explicitly) or you should install all packages using PyPI and then pip freeze > requirements.txt
to store the list of all packages needed.