python - 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?
解决方案
我认为你需要安装 VENV:
py -m pip install --user virtualenv
然后用这个方法安装你的包
pip install packageName==packageVersion
推荐阅读
- linux-kernel - 在 Linux 内核中获取帧计数
- asp.net-mvc - 如何从 Identity Server 启动调用 API
- javascript - graphql 变异参数名称为 [Object: null prototype]
- highcharts - Highcharts:如何对齐饼图的文本标签中间中心
- javascript - 根据另一个数组中的值对数组进行排序 - Javascript
- angular - 为什么 ngAfterViewInit 中的 formGroup (formRef.form) 为空?
- javascript - 如何改进这个 Promise 链接并获得相同的行为
- erlang - CouchDB 2.3.1 make install 在 RHEL7.6 上失败
- python - Python - 遍历列表并从每个目录中提取路径
- php - apache和IIS上getttype()的PHP不同结果