pip packages installed but not available in pip freeze
pip packages installed but not available in pip freeze
I have created a virtual environment using virtualenv csip_project -p python3
and was trying to install the dependencies from a requirements.txt
. Everything installs properly, but while executing the program it shows that module is not there. Then when I checked pip3 freeze
to see if the dependencies are saved or not, to my surprise, they were not, even though the pip3 install command says Requirement already satisfied
. Any idea what's going on? Here's the installation log and pip3 freeze
output.
virtualenv csip_project -p python3
requirements.txt
pip3 freeze
Requirement already satisfied
pip3 freeze
(csip_project) [app-admin@ip-172-19-35-21 src]$ pip3 install -r requirements.txt
Requirement already satisfied: imutils==0.5.1 in /home/app-admin/csip_project/lib/python3.6/dist-packages (from -r requirements.txt (line 1)) (0.5.1)
Collecting numpy==1.15.1 (from -r requirements.txt (line 2))
Using cached https://files.pythonhosted.org/packages/fe/94/7049fed8373c52839c8cde619acaf2c9b83082b935e5aa8c0fa27a4a8bcc/numpy-1.15.1-cp36-cp36m-manylinux1_x86_64.whl
Collecting opencv-contrib-python==3.4.2.17 (from -r requirements.txt (line 3))
Using cached https://files.pythonhosted.org/packages/61/29/fc60b2de1713aa92946992544329f20ccb5e4ba26290f403e04b7da44105/opencv_contrib_python-3.4.2.17-cp36-cp36m-manylinux1_x86_64.whl
Collecting Pillow==5.2.0 (from -r requirements.txt (line 4))
Using cached https://files.pythonhosted.org/packages/d1/24/f53ff6b61b3d728b90934bddb4f03f8ab584a7f49299bf3bde56e2952612/Pillow-5.2.0-cp36-cp36m-manylinux1_x86_64.whl
Requirement already satisfied: tqdm==4.25.0 in /home/app-admin/csip_project/lib/python3.6/dist-packages (from -r requirements.txt (line 5)) (4.25.0)
Installing collected packages: numpy, opencv-contrib-python, Pillow
Successfully installed Pillow-5.2.0 numpy-1.15.1 opencv-contrib-python-3.4.2.17
(csip_project) [app-admin@ip-172-19-35-21 src]$ pip3 freeze
imutils==0.5.1
tqdm==4.25.0
(csip_project) [app-admin@ip-172-19-35-21 src]$
0
Thanks for contributing an answer to Stack Overflow!
But avoid …
To learn more, see our tips on writing great answers.
Required, but never shown
Required, but never shown
By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.