首页 > 解决方案 > 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?

标签: pythonpython-3.xpip

解决方案


我认为你需要安装 VENV:

py -m pip install --user virtualenv

然后用这个方法安装你的包

 pip install packageName==packageVersion

推荐阅读