简体   繁体   English

我的点子是在Python3.4中安装所有模块

[英]My pip is installing all the modules in the Python3.4

My pip is installing all the modules in the Python3.4 version. 我的要点是安装Python3.4版本中的所有模块。 I can not use this module in other versions. 我不能在其他版本中使用此模块。

ImportError: No module named tensorflow ImportError:没有名为tensorflow的模块

This happens with all modules. 所有模块都会发生这种情况。 They are installing, however, only available for the Python3.4 version. 他们正在安装,但是仅适用于Python3.4版本。

Another error that appears is as follows: 出现的另一个错误如下:

DEPRECATION: Python 3.4 support has been deprecated. 弃用:Python 3.4支持已被弃用。 pip 19.1 will be the > last one supporting it. 19.1点是支持它的最后一个。 Please upgrade your Python as Python 3.4 won't be maintained after March 2019 (cf PEP 429). 请升级您的Python,因为在2019年3月之后将不再维护Python 3.4(请参阅PEP 429)。

NOTE: 注意:
The problem is that the other versions I have in Python do not recognize pip and pip3. 问题是我在Python中拥有的其他版本无法识别pip和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. 它识别的唯一版本是python3.4,因此我只能添加具有该版本的模块,并且这些模块仅适用于它。

/usr/local/bin/python3.7: No module named pip /usr/local/bin/python3.7:没有名为pip的模块

/usr/local/bin/python3.7: No module named pip3 /usr/local/bin/python3.7:没有名为pip3的模块

$ python3 -m pip3 install numpy $ python3 -m pip3安装numpy

/usr/bin/python3: No module named pip3 / usr / bin / python3:没有名为pip3的模块

NOTE: 注意:
Another thing I've been noticing is where the Python executable is, check with the which : 我注意到的另一件事是Python可执行文件在哪里,请检查which

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

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

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

The places are different, does it interfere? 地方不一样,会干扰吗?

I think that you need to install VENV: 我认为您需要安装VENV:

py -m pip install --user virtualenv

and then install your package with this method 然后用这种方法安装你的软件包

 pip install packageName==packageVersion

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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