当前第2页 返回上一页

哈哈。。通过以上我们已经给python3安装好了 pip3了。。。(小伙伴们也可以做个软连接,来方便实用奥。。)
三、来做个测试吧
1.首先我们进入pytho3
1 2 3 4 5 6 7 8 9 | [root@centos3 bin ]
Python 3.5 . 2 (default, Jul 27 2016 , 03 : 36 : 56 )
[GCC 4.4 . 7 20120313 (Red Hat 4.4 . 7 - 4 )] on linux
Type "help" , "copyright" , "credits" or "license" for more information.
>>> import pymysql
Traceback (most recent call last):
File "<stdin>" , line 1 , in <module>
ImportError: No module named 'pymysql'
>>>
|
好 ,我们用新安装的pip3来装下试试:
1 2 3 4 5 6 7 8 | [root@centos3 bin ]
Collecting pymysql
Downloading PyMySQL - 0.7 . 5 - py2.py3 - none - any .whl ( 77kB )
100 % |████████████████████████████████| 81kB 3.2kB / s
Installing collected packages: pymysql
Successfully installed pymysql - 0.7 . 5
|
安装完成了,看来pip3本身没有问题,我们测试下是否真正的给python3装上了这个模块吧(有可能装到了python2上了呢 ……-_-#)
1 2 3 4 5 6 | [root@centos3 bin ]
Python 3.5 . 2 (default, Jul 27 2016 , 03 : 36 : 56 )
[GCC 4.4 . 7 20120313 (Red Hat 4.4 . 7 - 4 )] on linux
Type "help" , "copyright" , "credits" or "license" for more information.
>>> import pymysql
>>>
|
哈哈哈 ok了。。 结束!!
以上就是python3安装pip3(install pip3 for python 3.x)的详细内容,更多文章请关注木庄网络博客!!
返回前面的内容
相关阅读 >>
Python实现百度语音识别api
Python怎样求得最大公约数
Python中如何安装xlsd
Python字典的键可以相同吗
什么是运算符?Python 运算符的作用与每个Python运算符的意义
如何用Python画烟花
Python求解物理学中的双弹簧质能系统的代码实例
Python求两个数的最大公约数
如何在线运行Python
Python入门必须知道的11个知识点_Python
更多相关阅读请进入《Python》频道 >>
人民邮电出版社
python入门书籍,非常畅销,超高好评,python官方公认好书。
转载请注明出处:木庄网络博客 » python3安装pip3(install pip3 for python 3.x)