Python第三方模块中一般会自带setup.py文件,在Windows环境下,我们只需要使用命令 cd c:\Temp\foo python setup.py install 两个命令就可以完成第三方模块的安装了.第一个cd命令将当前目前切换到待安装的第三方模块的目录下(这里假设第三方模块解压后的目录为c:\Temp\foo),第二个命令就执行安装了.安装的过程中可能会出现“ImportError: No module named setuptools”的错误提示,这是新手很常遇见的错误提示.…
在python运行过程中出现如下错误: python错误:ImportError: No module named setuptools这句错误提示的表面意思是:没有setuptools的模块,说明python缺少这个模块,那我们只要安装这个模块即可解决此问题,下面我们来安装一下:在命令行下:下载setuptools包 shell# wget http://pypi.python.org/packages/source/s/setuptools/setuptools-0.6c11.tar.gz解…
转自:http://www.cnblogs.com/chinacloud/archive/2010/12/24/1915644.html from setuptools import setupImportError: No module named setuptools 解决方法: wget http://peak.telecommunity.com/dist/ez_setup.pypython ez_setup.py…
安装django前要先安装setuptools 先安装一些必要的包,否则会报错:Python build finished, but the necessary bits to build these modules were not found #yum install -y sqlite bzip2-devel.i686 gdbm-devel.i686 readline-devel.x86_64 readline-devel sqlite-devel openssl-devel.i686 l…
python 运行python manege.py runserver时报错:“no module named djangorestframework” 的解决方案 importerror:no module named djangorestframework Django REST framework is a powerful and flexible toolkit that makes it easy to build Web APIs. Some reasons you might w…
描述:按照原书在settings的installed apps中加入sorl-thumbnail后同步数据库显示No module named 'sorl-thumbnail' 解决方案: 根据官方文档: “Add sorl.thumbnail to your settings.INSTALLED_APPS.”, 其实应该将sorl.thumbnail 而不是sorl-thumbnail加入apps…
背景 mac环境,使用pip install Appium-Python-Client已经安装了client包 问题 import appium,提示no module named appium 解决方案 cd /usr/local/bin pip3 install Appium-Python-Client 如果安装时遇到了以下问题 You are using pip version 8.1.1, however version 8.1.2 is available. You sho…