草庐IT

postgresql_installer_d

全部标签

python - 从代理服务器后面使用 ez_setup.py 安装 Python 的 easy_install

在使用代理服务器的公司网络上,有没有办法使用ez_setup.py安装Python的easy_install?目前,我收到连接超时:Downloadinghttp://pypi.python.org/packages/2.7/s/setuptools/setuptools-0.6c11-py2.7.eggTraceback(mostrecentcalllast):File"C:\jsears\python\ez_setup.py",line278,inmain(sys.argv[1:])File"C:\jsears\python\ez_setup.py",line210,inmaine

python - 调用 `pip install` 时运行自定义任务

我想让我的python包“pip可安装”。问题是该包具有必须在用户的initshell脚本中获取的shell脚本(例如.bashrc)。但安装后,用户并不知道脚本到底去了哪里(大概是/usr/bin,但我们不能保证)。当然,用户可以运行whichmyscript.sh并手动编辑他的初始化脚本。但是我想自动化这一步。我可以创建一个新的distutils命令,但pipinstall没有调用它。我可以扩展distutils.command.install.install,但安装会通过pip中断(尽管可以通过pythonsetup.pyinstall):setup.pyfromdistutil

python - 如何使用 Travis CI 测试 Pl/Python PostgreSQL 程序?

我正在尝试在TravisCI中为一些PL/PythonPostgreSQL过程设置CI。我试过几种方法:1)对于遗留基础设施,我试图假设PL/Python已经安装,但没有成功:Thecommand"psql-Upostgres-c'CREATEEXTENSIONplpythonu;'"exitedwith1.0.01s$psql-Upostgres-dtest-c'CREATELANGUAGEplpythonu;'ERROR:couldnotaccessfile"$libdir/plpython2":Nosuchfileordirectory2)尝试在开头添加sudoapt-getup

python easy_install 因所有包的 SSL 证书错误而失败

目标:我正在使用RedHat5并尝试为网络应用程序安装最新的python和django。我成功地安装了python27和easy_install,以及带有openssl的wget。问题:但是,现在我尝试从pypi.python.org获取任何内容时,出现以下错误:$sudoeasy_install--verbosedjangoSearchingfordjangoReadinghttps://pypi.python.org/simple/django/Downloaderroronhttps://pypi.python.org/simple/django/:[Errno1]_ssl.c:

python - sudo pip install VS pip install --user

不记得我在哪里读到这篇文章了,但不是在这里的某个地方,就是在我正在关注的教程的评论中,一个人说:'永远不要使用sudopipinstall;您可能会在不知情的情况下覆盖重要的内容。请改用pipinstall--user!'虽然我到处都看到很多关于sudopipinstall的引用,但是这个人知道他们在说什么吗我应该避免它,或者......? 最佳答案 $sudopipinstall在您的python安装中全局安装包,即为所有用户安装。$pipinstall--user安装到本地用户目录,即~/.local/lib/python--只

python - pip 无法卸载 <package> : "It is a distutils installed project"

我尝试安装Twilio模块:sudo-Hpipinstalltwilio我得到了这个错误:Installingcollectedpackages:pyOpenSSLFoundexistinginstallation:pyOpenSSL0.13.1Cannotuninstall'pyOpenSSL'.Itisadistutilsinstalledprojectandthuswecannotaccuratelydeterminewhichfilesbelongtoitwhichwouldleadtoonlyapartialuninstall.有人知道如何卸载pyOpenSSL吗?

python - 来自 pip 的 "Could not find .egg-info directory in install record"是什么意思?

由于更新了最新的setuptools(6.0.1),我收到警告(黄色)Couldnotfind.egg-infodirectoryininstallrecordfor...对于我更新的所有包。例如,在更新Twisted时我得到Couldnotfind.egg-infodirectoryininstallrecordforTwistedfromhttps://pypi.python.org/packages/source/T/Twisted/Twisted-14.0.2.tar.bz2#md5=....in/Library/Python/2.7/site-packages但是包更新似乎成

python - Postgresql ON CONFLICT 在 sqlalchemy 中

我已经阅读了相当多的资源(ao。1、2),但我无法在sqlalchemy中使用Postgresql的ONCONFLICTIGNORE行为。我用过thisacceptedanswer作为基础,但它给出了SAWarning:Can'tvalidateargument'append_string';can'tlocateanySQLAlchemydialectnamed'append'我已经尝试将postgresql方言添加到@compile子句,重命名我的对象,但它不起作用。我还尝试使用str(insert())+"ONCONFILCTIGNORE"但没有结果。(顺便说一句,不足为奇)如何

python - 无法使用 easy_install 安装 Python 模块

我正在尝试使用easy_install安装一个名为requests的模块easy_installrequests一周前,当我使用Python2.6.5时,它运行良好,但今天我安装了Python2.7.2,然后尝试在我的一个脚本中importrequests,但失败了。然后我尝试使用easy_installrequests重新安装请求,但出现此错误install_dir/usr/local/lib/python2.6/dist-packages/error:can'tcreateorremovefilesininstalldirectoryThefollowingerroroccurre

python - 当 pypi 关闭时,如何使用 easy_install 和 buildout?

我正在使用buildout自动下载和设置我的Plone安装的许多依赖项。buildout或多或少使用easy_install来下载和安装一堆Pythoneggs。这通常有效,但如果无法下载任何依赖项或者我希望buildout找到不适合pypi的内部包,则它不起作用。如何设置我自己的本地版本的pypi来自动镜像我需要的包?对于使用pypi作为元数据而不是代码的包,它是否仍然依赖于第三方服务器? 最佳答案 这是instructionsonhowtosetupyourownPyPimirror.这个项目的主页是here.那里似乎也有越来越