草庐IT

installation-path

全部标签

python - 'easy_install' 不是内部或外部命令、可运行程序或批处理文件

我刚刚在我的Windows7机器上下载并安装了最新版本的Python。Python2.7.3现在我想安装一个Twitterlibrary我在网上找到:但是,当我尝试运行easy_installtweepy时,我收到此错误消息:'easy_install'isnotrecognizedasanininternalorexternalcommand,operableprogramorbatchfile.Python已经放在我的路径中,因为我可以在命令行中调用Python程序。这是我安装Python的文件夹的屏幕截图。在工具文件夹中:在脚本文件夹中: 最佳答案

python - 如何在 Windows 上的 http 代理后面使用 easy_install?

当我使用命令时:easy_install观察器要安装spotter包,我收到以下错误消息SearchingforspotterReadinghttp://pypi.python.org/simple/spotter/Downloaderroronhttp://pypi.python.org/simple/spotter/:[Errno11001]getaddrinfofailed--Somepackagesmaynotbefound!Readinghttp://pypi.python.org/simple/spotter/Downloaderroronhttp://pypi.pytho

python - easy_install-2.7 的问题

安装easy_install并尝试使用它安装python包后,它失败了。[root@server]#easy_install-2.7pipSearchingforpipReadinghttp://pypi.python.org/simple/pip/Downloaderroronhttp://pypi.python.org/simple/pip/:unknownurltype:https--Somepackagesmaynotbefound!我似乎得到了重定向curl-ILhttp://pypi.python.org/simple/pip/HTTP/1.1301MovedPermane

python - 安装rpy2时遇到错误: Tried to guess R's HOME but no R command in the PATH

我在这里和其他地方看到了很多关于此错误的帖子,但所提议的解决方案似乎都不相关。我在Python2.7.9,我有anRexecutableinmypath,我正在尝试将它安装在RHEL服务器上,而不是在Windows上。这是我看到的具体错误。有谁知道是什么原因造成的或如何解决?谢谢!$pipinstallrpy2Downloading/unpackingrpy2Downloadingrpy2-2.5.6.tar.gz(165kB):165kBdownloadedRunningsetup.py(path:/tmp/pip_build_my520/rpy2/setup.py)egg_info

python - 是否可以将 "exe installers"与 pip 一起使用?

可以使用easy_install从http://www.lfd.uci.edu/~gohlke/pythonlibs/安装exes.有没有办法用pip做同样的事情?谢谢。 最佳答案 我不认为pip可以做到这一pip,但这可以用easy_install完成.例如$easy_install-U-Z"exe_installer_path"--升级,-U--始终解压缩,-Z有关命令行选项的更多说明,请查看here. 关于python-是否可以将"exeinstallers"与pip一起使用?,我

python - 如何将 geckodriver 放入 PATH?

这个问题在这里已经有了答案:SeleniumusingPython-GeckodriverexecutableneedstobeinPATH(36个答案)关闭6年前。我在OSSierra上运行Python3.5.2。我安装了selenium,并且正在关注一本名为“使用Python自动化无聊任务”的书我的代码是fromseleniumimportwebdriver>>>browser=webdriver.Firefox()我一直收到错误Traceback(mostrecentcalllast):File"/Library/Frameworks/Python.framework/Versi

python - 为什么我在 PyCharm 中的 zsh 没有正确的 $PATH?

最近在学python。我使用PyCharm作为我在MacBook上运行的编辑器。问题是当我在我的PyCharm终端中键入类似scrapy-V的内容时,它告诉我“zsh:找不到命令:scrapy”,但是当我在PyCharm外部启动我的终端时它工作正常。所以我想知道路径变量是否正确。然后我在PyCharm终端中尝试echo$PATH,它返回:/usr/bin:/bin:/usr/sbin:/sbin并且PyCharm外部的终端返回:/Library/Frameworks/Python.framework/Versions/3.6/bin:/usr/local/bin:/usr/bin:/b

python - pip install -U setuptools 使 windows 10 失败

我刚刚在我的Windows10PC上安装了Python3.7和Pycharm。我正在运行pip版本9.0.2在Pycharm中,它说我有28.8.0版的setuptools,当我尝试在Pycharm中升级它时,我相信它会运行pipinstall-Usetuptools我得到错误:PermissionError:[WinError32]Theprocesscannotaccessthefilebecauseitisbeingusedbyanotherprocess:'c:\users\Username\pycharmprojects\untitled1\venv\lib\site-pac

pip install安装软件包报错:Requirement already satisfied

报错信息:C:\Users\13512>pipinstallpygameRequirementalreadysatisfied:pygameinc:\users\13512\appdata\local\programs\python\python39\lib\site-packages(2.1.2)原因分析:需要指定路径解决方案:使用pipinstall--target=安装路径如:pipinstall--target=c:\users\13512\appdata\local\programs\python\python39\lib\site-packagespygame注意:--target

python 2.6.1 : expected path separator ([)

我在python2.6.1中遇到路径分隔符错误。我没有在python2.7.2版本中发现这个问题,但不幸的是我只在2.6.1中需要这个。还有其他方法可以达到同样的目的吗?:(我的代码:-importxml.etree.ElementTreeasET#version1.2.6importsysclassusersDetail(object):def__init__(self,users=None):self.doc=ET.parse("test.xml")self.root=self.doc.getroot()deffinal_xml(self,username):r=self.root