草庐IT

after_install

全部标签

python - easy_install pycrypto 的问题

我正在尝试使用easy_install在osx上安装pycrypto,但出现以下错误:easy_installpycryptoSearchingforpycryptoReadinghttp://pypi.python.org/simple/pycrypto/Readinghttp://pycrypto.sourceforge.netReadinghttp://www.pycrypto.org/Readinghttp://www.amk.ca/python/code/cryptoBestmatch:pycrypto2.3Downloadinghttp://ftp.dlitz.net/pu

python - Django/PIL 错误 - 呈现 : The _imagingft C module is not installed 时捕获异常

我正在尝试在我的机器上运行一个网络应用程序/网站,它在OSX10.6.2上运行,但我遇到了一些问题:Caughtanexeptionwhilerending:The_imagingftCmoduleisnotinstalled在python中执行import_imagingft给我这个:>>>import_imagingftTraceback(mostrecentcalllast):File"",line1,inImportError:dlopen(/Library/Python/2.6/site-packages/PIL/_imagingft.so,2):Symbolnotfound

Python - 未检测到使用 easy_install 安装的包 (PIL 1.1.7)

我使用easy_install安装了PIL,但出于某种原因,当我运行一个使用它的文件时,我得到:ImportError:NomodulenamedPIL有人知道为什么会这样吗?我认为还值得一提的是,我通过easy_install安装了web.py,它工作正常。 最佳答案 我也遇到了同样的问题。对我来说,它看起来像是PILeasy_install过程中的错误。该库已安装,但您必须从导入中省略PIL(又名importImage作品),这显然是错误的。要解决,不要使用easy_install来执行安装。下载tar包并pythonsetup

【代码】Xcode14升级 执行pod install --verbose 报错!

Xcode14升级执行podinstall--verbose报错[!]Ohno,anerroroccurred.(GoogleSDKOrThirdSDK)podinstall--verbose 报错信息如下―――MARKDOWNTEMPLATE―――――――――――――――――――――――――――――――――――――――――――――――――――――――――――###Command```/usr/local/bin/podinstall--verbose```###Report*Whatdidyoudo?*Whatdidyouexpecttohappen?*Whathappenedinstead

python - Pytesseract : "TesseractNotFound Error: tesseract is not installed or it' s not in your path", 我该如何解决这个问题?

我正在尝试在python中运行一个基本且非常简单的代码。fromPILimportImageimportpytesseractim=Image.open("sample1.jpg")text=pytesseract.image_to_string(im,lang='eng')print(text)这就是它的样子,我实际上已经通过安装程序安装了tesseractforwindows。我是Python的新手,我不确定如何继续?此处的任何指导都会非常有帮助。我试过重新启动我的Spyder应用程序但无济于事。 最佳答案 我看到步骤分散在不同

python - 导入错误 : No module named urllib3 when installing pip

我遇到virtualenvwrapper的问题,需要重新安装pip作为第一步,我收到了关于urllib3的奇怪投诉:$pythonget-pip.pyTraceback(mostrecentcalllast):File"get-pip.py",line19177,inmain()File"get-pip.py",line194,inmainbootstrap(tmpdir=tmpdir)File"get-pip.py",line82,inbootstrapimportpipFile"/tmp/tmppQTQty/pip.zip/pip/__init__.py",line16,inFil

python - setuptools、easy_install 和自定义 pypi 服务器

我有一个自定义的pypi服务器正在运行,我想知道如何将所有引用指向https://pypi.python.org/从那里到我的自定义服务器?我希望能够涵盖用户调用包的pip/easy_install的情况(这样他们就不必记住要执行-i或-f)以及在setup中使用setuptools和install_requires执行pythonsetup.pyinstall的人.py。是否有一些全局配置或设置可以让所有这些不同的方法查看我的本地服务器?我想象做一些网络代理类型的魔法将http://pypi.python.org/路由到我的自定义服务器是一种方法,但不幸的是,这不是一个选项。谢谢!

python - "pip install jq"在 Mac 和 Windows 上生成错误

此issue的副本,但第一个答案是错误的(Windows支持jq),第二个是指brew所以我猜是针对Mac的。Windows我正在尝试安装jq对于Windows命令行中的python,但出现以下错误,可能是由于缺少temp\pip-build-rtnhmg\jq\onig-install-5.9.6文件:error:[Error2]Thesystemcannotfindthefilespecified...和...Command"c:\python27\python.exe-u-c"importsetuptools,tokenize;__file__='c:\\users\\\\app

python 3 : Installing gi package with pip

我正在尝试运行this使用Python3的Matplotlib示例。要运行它,我需要先安装gi(我正在使用pyenv):$python--versionPython3.6.1$pip--versionpip9.0.1from/home/hakon/.pyenv/versions/3.6.1/lib/python3.6/site-packages(python3.6)$pipinstallgiCollectinggiDownloadinggi-1.2.tar.gzCollectingrequests(fromgi)Downloadingrequests-2.16.0-py2.py3-no

python - 安装.py : installing just a pth file?

作为构建自定义python的最后一步,我需要添加一个myproject.pth。目前我在Makefile中这样做:install:rm-f../../lib/python2.6/site-packages/myproject.pthcpmyproject.pth../../lib/python2.6/site-packages/myproject.pth但我想将其封装在setup.py中。不幸的是setup.py文档似乎没有涵盖这个微不足道的案例!任何帮助表示赞赏。我试过这个但它不起作用:fromsetuptoolsimportsetupsetup(packages=['mypacka