问答文章1 问答文章501 问答文章1001 问答文章1501 问答文章2001 问答文章2501 问答文章3001 问答文章3501 问答文章4001 问答文章4501 问答文章5001 问答文章5501 问答文章6001 问答文章6501 问答文章7001 问答文章7501 问答文章8001 问答文章8501 问答文章9001 问答文章9501

python安装包找不到setup?

发布网友 发布时间:2024-09-26 20:12

我来回答

1个回答

热心网友 时间:2024-10-05 03:46

安装python库时具体怎样怎样执行pythonsetup.pyinstall

现进入CMD,然后输入DOS命令进入setup.py文件所在目录,然后输入pythonsetup.pyinstall就搞定了。

python3.7安装失败

主要是要知道哪里出现问题了啊,点logfile看问题出在哪。比如说看操作系统是否匹配,3.7.3仅支持WindowsVista和更新的操作系统版本,不支持XP,如果需要在WindowsXP装的话,只能安装Python3.4及之前版本。只有知道问题在哪,才好出谋划策。

Django安装输入pythonsetup.pyinstall无效

setup.py文件没有在当前目录下,cd到解压目录下安装,

另外安装django的方法有好几种,下载easy_install或者pip工具

easy_installdjango==1.5.1

pipinstalldjango==1.5.1

高分求pythonsetup.pyinstall安装出现问题?提示:ImportError:NomodulenamedShared.DC.ZRD

看情况是你的安装包不完整。少了些内容。

shared.dc.zrdb.tm这个包从命名规则上看是一个习惯在windows下编程的人做的。unix和python都是对大小敏感的。所以为了程序的移植性,通常都不使用大小写来命名。

从内容上看,似乎是一个WEB的爬行器,有一个大的URL库,其中库有可能是从网上下载使用的。

所以你可以尝试从网上重新下载完整的安装包。或者是旧的安装包。旧的安装包里也许有这个文件,先安装旧的。再安装新的也许就没有问题了。

为什么python安装包的setup.py没有对应的uninstall参数

作者:victoryu

链接:

来源:知乎

著作权归作者所有,转载请联系作者获得授权。

刚试了下pipuninstall是可以的,但是相关的依赖包不会自动删除。

[root@nessus~]#piplist

Django(1.8.4)

MySQL-python(1.2.5)

pip(7.1.2)

pysqlite(2.8.1)

setuptools(18.2)

[root@nessus~]#pipinstallhttpie

Collectinghttpie

Retrying(Retry(total=4,connect=None,read=None,redirect=None))afterconnectionbrokenby'ReadTimeoutError("HTTPSConnectionPool(host='pypi.python.org',port=443):Readtimedout.(readtimeout=15)",)':/simple/httpie/

Retrying(Retry(total=3,connect=None,read=None,redirect=None))afterconnectionbrokenby'ReadTimeoutError("HTTPSConnectionPool(host='pypi.python.org',port=443):Readtimedout.(readtimeout=15)",)':/simple/httpie/

Downloadinghttpie-0.9.2-py2.py3-none-any.whl(66kB)

100%|████████████████████████████████|69kB325kB/s

Collectingrequests=2.3.0(fromhttpie)

Downloadingrequests-2.8.1-py2.py3-none-any.whl(497kB)

100%|████████████████████████████████|499kB618kB/s

CollectingPygments=1.5(fromhttpie)

DownloadingPygments-2.0.2-py2-none-any.whl(672kB)

100%|████████████████████████████████|675kB338kB/s

Installingcollectedpackages:requests,Pygments,httpie

SuccessfullyinstalledPygments-2.0.2httpie-0.9.2requests-2.8.1

[root@nessuspip_test]#piplist

Django(1.8.4)

httpie(0.9.2)

MySQL-python(1.2.5)

pip(7.1.2)

Pygments(2.0.2)

pysqlite(2.8.1)

requests(2.8.1)

setuptools(18.2)

[root@nessuspip_test]#pipuninstallhttpie

Uninstallinghttpie-0.9.2:

/usr/local/bin/http

/usr/local/lib/python2.7/site-packages/httpie-0.9.2.dist-info/DESCRIPTION.rst

/usr/local/lib/python2.7/site-packages/httpie-0.9.2.dist-info/METADATA

/usr/local/lib/python2.7/site-packages/httpie-0.9.2.dist-info/RECORD

/usr/local/lib/python2.7/site-packages/httpie-0.9.2.dist-info/WHEEL

/usr/local/lib/python2.7/site-packages/httpie-0.9.2.dist-info/entry_points.txt

/usr/local/lib/python2.7/site-packages/httpie-0.9.2.dist-info/metadata.json

/usr/local/lib/python2.7/site-packages/httpie-0.9.2.dist-info/top_level.txt

/usr/local/lib/python2.7/site-packages/httpie/__init__.py

/usr/local/lib/python2.7/site-packages/httpie/__init__.pyc

/usr/local/lib/python2.7/site-packages/httpie/__main__.py

/usr/local/lib/python2.7/site-packages/httpie/__main__.pyc

/usr/local/lib/python2.7/site-packages/httpie/cli.py

/usr/local/lib/python2.7/site-packages/httpie/cli.pyc

/usr/local/lib/python2.7/site-packages/httpie/client.py

/usr/local/lib/python2.7/site-packages/httpie/client.pyc

/usr/local/lib/python2.7/site-packages/httpie/compat.py

/usr/local/lib/python2.7/site-packages/httpie/compat.pyc

/usr/local/lib/python2.7/site-packages/httpie/config.py

/usr/local/lib/python2.7/site-packages/httpie/config.pyc

/usr/local/lib/python2.7/site-packages/httpie/context.py

/usr/local/lib/python2.7/site-packages/httpie/context.pyc

/usr/local/lib/python2.7/site-packages/httpie/core.py

/usr/local/lib/python2.7/site-packages/httpie/core.pyc

/usr/local/lib/python2.7/site-packages/httpie/downloads.py

/usr/local/lib/python2.7/site-packages/httpie/downloads.pyc

/usr/local/lib/python2.7/site-packages/httpie/input.py

/usr/local/lib/python2.7/site-packages/httpie/input.pyc

/usr/local/lib/python2.7/site-packages/httpie/models.py

/usr/local/lib/python2.7/site-packages/httpie/models.pyc

/usr/local/lib/python2.7/site-packages/httpie/output/__init__.py

/usr/local/lib/python2.7/site-packages/httpie/output/__init__.pyc

/usr/local/lib/python2.7/site-packages/httpie/output/formatters/__init__.py

/usr/local/lib/python2.7/site-packages/httpie/output/formatters/__init__.pyc

/usr/local/lib/python2.7/site-packages/httpie/output/formatters/colors.py

/usr/local/lib/python2.7/site-packages/httpie/output/formatters/colors.pyc

/usr/local/lib/python2.7/site-packages/httpie/output/formatters/headers.py

/usr/local/lib/python2.7/site-packages/httpie/output/formatters/headers.pyc

/usr/local/lib/python2.7/site-packages/httpie/output/formatters/json.py

/usr/local/lib/python2.7/site-packages/httpie/output/formatters/json.pyc

/usr/local/lib/python2.7/site-packages/httpie/output/formatters/xml.py

/usr/local/lib/python2.7/site-packages/httpie/output/formatters/xml.pyc

/usr/local/lib/python2.7/site-packages/httpie/output/processing.py

/usr/local/lib/python2.7/site-packages/httpie/output/processing.pyc

/usr/local/lib/python2.7/site-packages/httpie/output/streams.py

/usr/local/lib/python2.7/site-packages/httpie/output/streams.pyc

/usr/local/lib/python2.7/site-packages/httpie/plugins/__init__.py

/usr/local/lib/python2.7/site-packages/httpie/plugins/__init__.pyc

/usr/local/lib/python2.7/site-packages/httpie/plugins/base.py

/usr/local/lib/python2.7/site-packages/httpie/plugins/base.pyc

/usr/local/lib/python2.7/site-packages/httpie/plugins/builtin.py

/usr/local/lib/python2.7/site-packages/httpie/plugins/builtin.pyc

/usr/local/lib/python2.7/site-packages/httpie/plugins/manager.py

/usr/local/lib/python2.7/site-packages/httpie/plugins/manager.pyc

/usr/local/lib/python2.7/site-packages/httpie/sessions.py

/usr/local/lib/python2.7/site-packages/httpie/sessions.pyc

/usr/local/lib/python2.7/site-packages/httpie/utils.py

/usr/local/lib/python2.7/site-packages/httpie/utils.pyc

Proceed(y/n)?y

Successfullyuninstalledhttpie-0.9.2

[root@nessuspip_test]#piplist

Django(1.8.4)

MySQL-python(1.2.5)

pip(7.1.2)

Pygments(2.0.2)

pysqlite(2.8.1)

requests(2.8.1)

setuptools(18.2)

python怎么安装第三方类库

使用pip

大多数库都可以通过pip安装,安装方法为,在命令行窗口输入

pipinstalllibname

libname为库名

某些库通过pip安装不了,可能是因为没有打包上传到pypi中,可以下载安装包之后离线安装,方法是

pipinstalllibpath

libpath为本地安装包地址,这些安装包一般以whl为后缀名。表示python扩展包的windows环境下的二进制文件。

有一个专门下载这种文件的地方,是由加利福尼亚大学的师生为方便python用户使用而建立的,并非官方出品,使用时需自行承担风险。

源文件安装

如果下载下来的安装包为带有源文件的压缩包,解压之后,运行setup.py进行安装,方法是

命令行切换到安装包中setup.py文件所在的目录,执行pythonsetup.pyinstall

运行安装包

有些类库提供了双击运行直接安装的安装包,比如python连接mysql数据库的驱动mysql-connector-python

这些安装包的后缀名为msi或者exe。下载下来之后,双击运行之后就安装好了,前提是要根据python的版本及windows的位数下载对应的安装包,否则安装过程会报错或者直接提示无法安装。

热心网友 时间:2024-10-05 03:47

安装python库时具体怎样怎样执行pythonsetup.pyinstall

现进入CMD,然后输入DOS命令进入setup.py文件所在目录,然后输入pythonsetup.pyinstall就搞定了。

python3.7安装失败

主要是要知道哪里出现问题了啊,点logfile看问题出在哪。比如说看操作系统是否匹配,3.7.3仅支持WindowsVista和更新的操作系统版本,不支持XP,如果需要在WindowsXP装的话,只能安装Python3.4及之前版本。只有知道问题在哪,才好出谋划策。

Django安装输入pythonsetup.pyinstall无效

setup.py文件没有在当前目录下,cd到解压目录下安装,

另外安装django的方法有好几种,下载easy_install或者pip工具

easy_installdjango==1.5.1

pipinstalldjango==1.5.1

高分求pythonsetup.pyinstall安装出现问题?提示:ImportError:NomodulenamedShared.DC.ZRD

看情况是你的安装包不完整。少了些内容。

shared.dc.zrdb.tm这个包从命名规则上看是一个习惯在windows下编程的人做的。unix和python都是对大小敏感的。所以为了程序的移植性,通常都不使用大小写来命名。

从内容上看,似乎是一个WEB的爬行器,有一个大的URL库,其中库有可能是从网上下载使用的。

所以你可以尝试从网上重新下载完整的安装包。或者是旧的安装包。旧的安装包里也许有这个文件,先安装旧的。再安装新的也许就没有问题了。

为什么python安装包的setup.py没有对应的uninstall参数

作者:victoryu

链接:

来源:知乎

著作权归作者所有,转载请联系作者获得授权。

刚试了下pipuninstall是可以的,但是相关的依赖包不会自动删除。

[root@nessus~]#piplist

Django(1.8.4)

MySQL-python(1.2.5)

pip(7.1.2)

pysqlite(2.8.1)

setuptools(18.2)

[root@nessus~]#pipinstallhttpie

Collectinghttpie

Retrying(Retry(total=4,connect=None,read=None,redirect=None))afterconnectionbrokenby'ReadTimeoutError("HTTPSConnectionPool(host='pypi.python.org',port=443):Readtimedout.(readtimeout=15)",)':/simple/httpie/

Retrying(Retry(total=3,connect=None,read=None,redirect=None))afterconnectionbrokenby'ReadTimeoutError("HTTPSConnectionPool(host='pypi.python.org',port=443):Readtimedout.(readtimeout=15)",)':/simple/httpie/

Downloadinghttpie-0.9.2-py2.py3-none-any.whl(66kB)

100%|████████████████████████████████|69kB325kB/s

Collectingrequests=2.3.0(fromhttpie)

Downloadingrequests-2.8.1-py2.py3-none-any.whl(497kB)

100%|████████████████████████████████|499kB618kB/s

CollectingPygments=1.5(fromhttpie)

DownloadingPygments-2.0.2-py2-none-any.whl(672kB)

100%|████████████████████████████████|675kB338kB/s

Installingcollectedpackages:requests,Pygments,httpie

SuccessfullyinstalledPygments-2.0.2httpie-0.9.2requests-2.8.1

[root@nessuspip_test]#piplist

Django(1.8.4)

httpie(0.9.2)

MySQL-python(1.2.5)

pip(7.1.2)

Pygments(2.0.2)

pysqlite(2.8.1)

requests(2.8.1)

setuptools(18.2)

[root@nessuspip_test]#pipuninstallhttpie

Uninstallinghttpie-0.9.2:

/usr/local/bin/http

/usr/local/lib/python2.7/site-packages/httpie-0.9.2.dist-info/DESCRIPTION.rst

/usr/local/lib/python2.7/site-packages/httpie-0.9.2.dist-info/METADATA

/usr/local/lib/python2.7/site-packages/httpie-0.9.2.dist-info/RECORD

/usr/local/lib/python2.7/site-packages/httpie-0.9.2.dist-info/WHEEL

/usr/local/lib/python2.7/site-packages/httpie-0.9.2.dist-info/entry_points.txt

/usr/local/lib/python2.7/site-packages/httpie-0.9.2.dist-info/metadata.json

/usr/local/lib/python2.7/site-packages/httpie-0.9.2.dist-info/top_level.txt

/usr/local/lib/python2.7/site-packages/httpie/__init__.py

/usr/local/lib/python2.7/site-packages/httpie/__init__.pyc

/usr/local/lib/python2.7/site-packages/httpie/__main__.py

/usr/local/lib/python2.7/site-packages/httpie/__main__.pyc

/usr/local/lib/python2.7/site-packages/httpie/cli.py

/usr/local/lib/python2.7/site-packages/httpie/cli.pyc

/usr/local/lib/python2.7/site-packages/httpie/client.py

/usr/local/lib/python2.7/site-packages/httpie/client.pyc

/usr/local/lib/python2.7/site-packages/httpie/compat.py

/usr/local/lib/python2.7/site-packages/httpie/compat.pyc

/usr/local/lib/python2.7/site-packages/httpie/config.py

/usr/local/lib/python2.7/site-packages/httpie/config.pyc

/usr/local/lib/python2.7/site-packages/httpie/context.py

/usr/local/lib/python2.7/site-packages/httpie/context.pyc

/usr/local/lib/python2.7/site-packages/httpie/core.py

/usr/local/lib/python2.7/site-packages/httpie/core.pyc

/usr/local/lib/python2.7/site-packages/httpie/downloads.py

/usr/local/lib/python2.7/site-packages/httpie/downloads.pyc

/usr/local/lib/python2.7/site-packages/httpie/input.py

/usr/local/lib/python2.7/site-packages/httpie/input.pyc

/usr/local/lib/python2.7/site-packages/httpie/models.py

/usr/local/lib/python2.7/site-packages/httpie/models.pyc

/usr/local/lib/python2.7/site-packages/httpie/output/__init__.py

/usr/local/lib/python2.7/site-packages/httpie/output/__init__.pyc

/usr/local/lib/python2.7/site-packages/httpie/output/formatters/__init__.py

/usr/local/lib/python2.7/site-packages/httpie/output/formatters/__init__.pyc

/usr/local/lib/python2.7/site-packages/httpie/output/formatters/colors.py

/usr/local/lib/python2.7/site-packages/httpie/output/formatters/colors.pyc

/usr/local/lib/python2.7/site-packages/httpie/output/formatters/headers.py

/usr/local/lib/python2.7/site-packages/httpie/output/formatters/headers.pyc

/usr/local/lib/python2.7/site-packages/httpie/output/formatters/json.py

/usr/local/lib/python2.7/site-packages/httpie/output/formatters/json.pyc

/usr/local/lib/python2.7/site-packages/httpie/output/formatters/xml.py

/usr/local/lib/python2.7/site-packages/httpie/output/formatters/xml.pyc

/usr/local/lib/python2.7/site-packages/httpie/output/processing.py

/usr/local/lib/python2.7/site-packages/httpie/output/processing.pyc

/usr/local/lib/python2.7/site-packages/httpie/output/streams.py

/usr/local/lib/python2.7/site-packages/httpie/output/streams.pyc

/usr/local/lib/python2.7/site-packages/httpie/plugins/__init__.py

/usr/local/lib/python2.7/site-packages/httpie/plugins/__init__.pyc

/usr/local/lib/python2.7/site-packages/httpie/plugins/base.py

/usr/local/lib/python2.7/site-packages/httpie/plugins/base.pyc

/usr/local/lib/python2.7/site-packages/httpie/plugins/builtin.py

/usr/local/lib/python2.7/site-packages/httpie/plugins/builtin.pyc

/usr/local/lib/python2.7/site-packages/httpie/plugins/manager.py

/usr/local/lib/python2.7/site-packages/httpie/plugins/manager.pyc

/usr/local/lib/python2.7/site-packages/httpie/sessions.py

/usr/local/lib/python2.7/site-packages/httpie/sessions.pyc

/usr/local/lib/python2.7/site-packages/httpie/utils.py

/usr/local/lib/python2.7/site-packages/httpie/utils.pyc

Proceed(y/n)?y

Successfullyuninstalledhttpie-0.9.2

[root@nessuspip_test]#piplist

Django(1.8.4)

MySQL-python(1.2.5)

pip(7.1.2)

Pygments(2.0.2)

pysqlite(2.8.1)

requests(2.8.1)

setuptools(18.2)

python怎么安装第三方类库

使用pip

大多数库都可以通过pip安装,安装方法为,在命令行窗口输入

pipinstalllibname

libname为库名

某些库通过pip安装不了,可能是因为没有打包上传到pypi中,可以下载安装包之后离线安装,方法是

pipinstalllibpath

libpath为本地安装包地址,这些安装包一般以whl为后缀名。表示python扩展包的windows环境下的二进制文件。

有一个专门下载这种文件的地方,是由加利福尼亚大学的师生为方便python用户使用而建立的,并非官方出品,使用时需自行承担风险。

源文件安装

如果下载下来的安装包为带有源文件的压缩包,解压之后,运行setup.py进行安装,方法是

命令行切换到安装包中setup.py文件所在的目录,执行pythonsetup.pyinstall

运行安装包

有些类库提供了双击运行直接安装的安装包,比如python连接mysql数据库的驱动mysql-connector-python

这些安装包的后缀名为msi或者exe。下载下来之后,双击运行之后就安装好了,前提是要根据python的版本及windows的位数下载对应的安装包,否则安装过程会报错或者直接提示无法安装。

声明声明:本网页内容为用户发布,旨在传播知识,不代表本网认同其观点,若有侵权等问题请及时与本网联系,我们将在第一时间删除处理。E-MAIL:11247931@qq.com
2024年欧洲杯赛程表 德国欧洲杯足球赛2024赛程时间表 勇者斗魔王勇者斗恶龙12Gameboy游戏1中最后魔王变身后怎么打2中什么武... 电脑开机十秒技巧怎样让电脑开机速度变快 完美世界手游熊猫哪里抓完美国际熊猫是怎么得的 ...每一关跳旗杆的时候怎么才能跳到满分我每次都只能跳到 ip11和ip11pro区别 请问;谁知道SJ-M里面有一个叫基_什么? 智齿疼一定要拔吗 大师们帮我算算我的命数!不胜感激~ 怎样选择评估公司 mac如何确认django安装成功(如何查看django安装成功了) 听说阳朔的有竹筏漂流,好玩吗?在当地有没有地道的小吃,想在竹筏上... 劳动合同到期后单位忘记续签怎么赔偿 去漓江竹筏游不可错过的游玩项目有什么? 股票配资有哪些好处,哪里可以配资的? - 知乎 漓江上竹筏上那是什么鸟了吃鱼的求解惑 初一女儿暑假买什么样的手机好? 股票配资的优点有哪些? 什么手机性价比高,学生用 股票配资有什么好处 为什么惠普打印服连不上了 惠普1007.1008怎么连不上打印机啊? 移动10086话务员上班多久给交公积金 惠普打印机连接不上怎么回事? 要不要选择10086工作 发朋友圈的爱情感悟经典说说 懂你的人最温暖的 姓李的名人有哪些?请多列举些 Angelababy有谁是她的粉丝,能告诉我baby的老公的父母和baby的父母 angelababy你在什么国家里。我是姚欣欣,我9岁了,我常常看奔跑吧兄弟... ...有时还会发痒。但脸上不缺水分。有什么好的方法么? django如何连接mysql数据库配置(django和mysql交互) 人身伤害伤残鉴定标准 django的数据表在哪个文件夹(2023年最新分享) 赠予公证书范本 广东海洋大学寸金学院怎样? 是不是很多有钱人去读的啊 求5个人物线索的故事 水浒传佳句点评 男子杀害出轨妻子后自杀未遂,为何又选择自首 郑州电泳加工谁家做的最好,质量有保证? 电泳涂装设备设备组成 涂装生产线简介 电泳涂装生产线注意事项 去北京三日游,该如何安排行程与住宿? 开车去北京攻略,自驾去北京旅游攻略最新 外形象小鸭孑,黑色,体重不到半斤能长时间替水,的一种水鸟叫什么 ...里救起来的,应该是水陆两栖鸟类,不知道叫什么名字吃 用一根长56dm的铁丝围成一个等腰梯形 其中一腰长为13dm 高为6dm 它... 用一根长56分米的铁丝围成一个等腰梯形周长是十三分米高是六分米 小明用铁丝围成一个长60厘米,宽5分米,高3分米的长方体框架,至少需要铁 ... 对公账户注销流程详解