草庐IT

installation-package

全部标签

python - python2 存在 site-packages 文件夹,python3 不存在

作为root用户,我看到:root@5d6f29f1d4e9:/usr/local/lib/python2.7#ls-a...dist-packagessite-packagesroot@5d6f29f1d4e9:/usr/local/lib/python3.6#ls-a...dist-packages当我运行这个时:find/-typed-name'site-packages'唯一的结果是:/usr/local/lib/python2.7/site-packages有谁知道为什么我在3.6中看不到站点包?我安装了python3:aptinstall-ybuild-essentiall

python - Django 是否具有 Rails 的 "bundle install"的等价物?

我喜欢Rails项目的一件事是,当部署到远程服务器时,如果一切设置正确,您可以这样做:$:bundleinstall并且系统会安装运行项目所需的各种依赖项(rubygems)。Python/Django有类似的东西吗? 最佳答案 您可以卡住需求。这会生成项目所需的所有Python模块的列表。我相信bundle在概念上是相似的。例如:virtualenv--no-site-packagesmyproject_env#createablankPythonvirtualenvironmentsourcemyproject_env/bin/

Collecting package metadata (repodata.json): failedCondaSSLError: Encountered an SSL error. 一招解决

Collectingpackagemetadata(repodata.json):failedCondaSSLError:EncounteredanSSLerror.Mostlikelyacertificateverificationissue.先找到你的anaconda安装的位置,按照D:\Anaconda\Library\bin这个路径,复制bin文件下的这两个文件粘贴到D:\Anaconda\DLLs里面接着重启电脑就OK了

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 - 导入错误 : with error 'is not a package'

在python3中遇到ImportError问题。我的项目结构如下:cts_sap_polaris/|--etc||--clean_cts_sap_polaris.yaml||--clean_env_variables.tcl||--cts_sap_polaris_ha_combined.yaml||--cts_sap_polaris.yaml|`--TCL_TESTBED_CONFIGS|--__init__.py|--jobs||--__init__.py||--__pycache__||`--run_cts_sap_polaris.cpython-34.pyc|`--run_ct

Python 导入优先级 : packages or modules?

我不清楚如何正确命名这个问题。案例一假设我有以下目录结构。foo|+-bar/__init__.py|+-bar.py如果我有fromfooimportbar我如何知道正在导入哪个柱(bar.py或bar/__init__.py)?有什么简单的方法可以自动检测这种情况的发生吗?案例二foo|+-foo.py|+-other.py如果other.py有这行importfoo我如何知道正在导入哪个foo(foo或foo.foo)?同样,是否有任何简单的方法可以自动检测这种情况的发生? 最佳答案 TLDR;如果包在同一目录中,则包优先于同

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 - 是否可以将 "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 - 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