简体   繁体   中英

My pip is installing all the modules in the Python3.4

My pip is installing all the modules in the Python3.4 version. I can not use this module in other versions.

ImportError: No module named tensorflow

This happens with all modules. They are installing, however, only available for the Python3.4 version.

Another error that appears is as follows:

DEPRECATION: Python 3.4 support has been deprecated. pip 19.1 will be the > last one supporting it. Please upgrade your Python as Python 3.4 won't be maintained after March 2019 (cf PEP 429).

NOTE:
The problem is that the other versions I have in Python do not recognize pip and pip3. The only version that it recognizes is python3.4, so I can only add modules with this version and these modules are only available for it.

/usr/local/bin/python3.7: No module named pip

/usr/local/bin/python3.7: No module named pip3

$ python3 -m pip3 install numpy

/usr/bin/python3: No module named pip3

NOTE:
Another thing I've been noticing is where the Python executable is, check with the which :

$ which python3.4
/usr/bin/python3.4

$ which python3.6
/usr/local/bin/python3.6

$ which python3.7
/usr/local/bin/python3.7

The places are different, does it interfere?

I think that you need to install VENV:

py -m pip install --user virtualenv

and then install your package with this method

 pip install packageName==packageVersion

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM