草庐IT

installment

全部标签

python - 如何在 Windows 上安装 .egg Python 包(尝试使用 easy_install 不起作用)

我正在尝试为我正在做的一门类(class)安装一个名为QSTK的软件包。类(class)指向一个32位版本的安装包,但是我安装了64个Python。我在Pythonpackagesindex上找到了一个.egg文件。.它似乎有一个32位的exe,但只有.egg的64位。我下载了QSTK-0.2.6-py2.7.egg版本,到目前为止一直在尝试安装,但没有成功。这是我尝试过的:使用简易安装(来自C:\Python27\Lib\site-packages目录):Pythoneasy_install-ZC:\Users\Prosserc\Downloads\QSTK-0.2.6-py2.7.

python - 导入错误 : DLL load failed when importing Numpy installed in conda virtual environment

在Windows中,我使用命令创建了一个Conda虚拟环境condacreate-ntestpython=2.7pandasscipymatplotlibnumpy创建后,我激活了虚拟环境并进入了python解释器。尝试导入numpy时,出现以下错误:>>>importnumpyTraceback(mostrecentcalllast):File"",line1,inFile"C:\Anaconda3\envs\test\lib\site-packages\numpy\__init__.py",line180,infrom.importadd_newdocsFile"C:\Anacon

python - pip install 默认带有删除选项

在python(django)项目中,当我使用pip更改现有依赖项的位置,并在另一台机器上重新安装更新后的requirements.txt文件时,系统会提示我如下消息:-ObtainingSouthfromgit+git://github.com/lambdafu/django-south.git@7bb081348d854d0b1aa82b87da5b446ad5d6f2a6#egg=South-dev(from-rrequirements.txt(line5))gitclonein./src/southexistswithURLgit://github.com/clones/dja

python - 为什么heroku local :run wants to use the global python installation instead of the currently activated virtual env?

使用Heroku部署我们的Django应用程序,除了herokulocal:run命令之外,一切似乎都符合规范。我们经常需要通过Django的manage.py文件来运行命令。在Remote上运行它们,作为一次性的测功机,完美无缺。要在本地运行它们,我们尝试:herokulocal:runpythonmanage.pythe_command尽管当前虚拟环境包含Django安装,但失败了,ImportError:Nomodulenameddjango.core.management 通过python路径诊断然后herokulocal:runwhichpython返回:/usr/local

python - Easy_install 缓存下载的文件

有没有办法配置easy_install以避免在安装失败时重新下载文件? 最佳答案 13年后更新:easy_install已于2021年1月从Python中移除。python包管理器是pip,它会缓存下载的包。pip(http://pypi.python.org/pypi/pip/)是easy_install工具的直接替代品,可以做到这一点。只需运行easy_installpip并将环境变量PIP_DOWNLOAD_CACHE设置为您希望pip存储文件的路径。请注意,缓存不适用于从源代码存储库(如svn/git/hg/bzr)chec

python - fatal error : 'Python.h' file not found while installing opencv

我正在尝试在我的MacOSX10.10.5上为Python安装opencv3.1我正在按照此处概述的步骤进行操作-http://www.pyimagesearch.com/2015/06/15/install-opencv-3-0-and-python-2-7-on-osx/当我在所有设置后实际尝试安装opencv时,我收到以下错误:.../opencv/modules/python/src2/cv2.cpp:6:10:fatalerror:'Python.h'filenotfound#include^我查看了StackOverflow,发现大多数面临此问题的人都在使用Anaconda

python - 为什么easy_install会提取一些python鸡蛋而不是其他的?

查看我的/usr/local/lib/python.../dist-package目录,我有.egg目录和.egg文件。为什么安装程序选择将额外的包添加到.egg目录,而将其他文件保留为.egg扩展名? 最佳答案 如果包只包含纯Python代码,它可以保留为一个egg文件。Python解释器可以直接从egg加载Python模块。如果包包含用C或其他数据编写的模块,则需要提取egg以便可以访问C模块和/或数据。我相信这是包的默认行为。较新版本的Python可能能够从egg文件加载C模块;我不确定那部分。包的创建者还可以通过传递zip_

python - 在 virtualenv : installed sklearn module not available 中运行 Jupyter notebook

我已经安装了一个创建的virtualenvma​​chinelearn并在那个环境中安装了一些python模块(pandas、scipy和sklearn)。当我运行jupyternotebook时,我可以在我的笔记本中导入pandas和scipy-但是,当我尝试导入sklearn时,我收到以下错误消息:importsklearn---------------------------------------------------------------------------ImportErrorTraceback(mostrecentcalllast)in()---->1import

python - pyconfig.h 在 "pip install cryptography"期间丢失

我想建立sc​​rapy集群pip击这个链接scrapy-cluster,在我运行这个命令之前一切正常:pipinstall-rrequirements.txtrequirements.txt看起来像:cffi==1.2.1characteristic==14.3.0ConcurrentLogHandler>=0.9.1cryptography==0.9.1...我猜上面的命令意思是在requirements.txt中安装包。但是我不想让它指定版本,所以我把它改成这样:catrequirements.txt|whilereadline;dopipinstall${line%%[>=]*

python - 如何 `pip install` 具有 Git 依赖项的包?

我有一个名为some-library(实际名称已更改)的私有(private)库,其安装文件看起来像这样:setup(name='some-library',//Omittedsomelessimportantstuffhere...install_requires=['some-git-dependency','another-git-dependency',],dependency_links=['git+ssh://git@github.com/my-organization/some-git-dependency.git#egg=some-git-dependency','gi