首页 > 编程语言 > 详细

Install Python Modules

时间:2016-03-06 17:09:30      阅读:151      评论:0      收藏:0      [点我收藏+]

1. using pip (for ubuntu: using "sudo apt-get install python3-pip" to install pip for python3):

    pip install mudulename

2. using sudo command in Linux in condition that pip doesn‘t work, for example the Tkinter module:

    sudo apt-get install python3-tk # for Python 3

    sudo apt-get install python-tk  #  for python 2

Reason:

    "you cannot install this library using pip, as pip is only designed to install pure python packages. By the way you would not have the sufficient rights to install the library. So you need to ask your superuser for help."

 

Reference Link:

1. https://packaging.python.org/en/latest/install_requirements_linux/#installing-pip-setuptools-wheel-with-linux-package-managers

2. http://askubuntu.com/questions/505141/unable-to-install-import-tkinter

 

Install Python Modules

原文:http://www.cnblogs.com/bajunma123/p/5247802.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!