binpython3: No module named pip

binpython3: No module named pip,第1张

概述环境:centos7Iinstalled Python3.4 on CentOS7.3: sudoyuminstallepel-release sudoyuminstallpython34.x86_64Therewas python2 installedbeforeunder typepython pythonishashed(/bin/python)Soversion3isunder

环境:centos7

I installed Python 3.4 on CentOS 7.3:

 sudo yum install epel-release sudo yum install python34.x86_64

There was python 2 installed before under

 type python python is hashed (/bin/python)

So version 3 is under python3:

 type python3 python3 is hashed (/bin/python3)

On windows, I have version 3.5 and the way I install packages is:

python -m pip install <package_name>
 

So I trIEd the same on CentOS but calling python3 instead of python:

 python3 -m pip install psycopg2 /bin/python3: No module named pip

How do I install or enable pip in Python 3.4 on CentOS so that I can install packages?

使用如下方法解决:

 sudo yum install python34-setuptools sudo easy_install-3.4 pip

 

  总结

以上是内存溢出为你收集整理的/bin/python3: No module named pip全部内容,希望文章能够帮你解决/bin/python3: No module named pip所遇到的程序开发问题。

如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。

欢迎分享,转载请注明来源:内存溢出

原文地址: http://outofmemory.cn/langs/1188552.html

(0)
打赏 微信扫一扫 微信扫一扫 支付宝扫一扫 支付宝扫一扫
上一篇 2022-06-03
下一篇 2022-06-03

发表评论

登录后才能评论

评论列表(0条)

保存