Procedure:
pip3 install -e .
Error:
It still can not find the module:
python3
Python 3.6.5 (default, Apr 25 2018, 14:26:36)
import funniest
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ModuleNotFoundError: No module named 'funniest'
However, when I import the module in python
, it CAN find it:
python
Python 2.7.10 (default, Feb 7 2017, 00:08:15)
import funniest
My python:
sys.executable
'/usr/local/opt/python/bin/python3.6'
Question
Why pip3
installed it for python 2.7 not for my python 3.x ?
Thanks!
List Installed Packages with Pip. Both pip list and pip freeze will generate a list of installed packages, just with differently formatted results. Keep in mind that pip list will list ALL installed packages (regardless of how they were installed). while pip freeze will list only everything installed by Pip.
To install a package that includes a setup.py file, open a command or terminal window and: cd into the root directory where setup.py is located. Enter: python setup.py install.
Following the hint from @hoefling, I found that my pip3 is somewhat linked to a wrong python version.
Then install with python3 -m pip install
worked.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With