草庐IT

after_install

全部标签

python - easy_install 失败,出现错误 "Couldn' t 二进制文件上传后找不到安装脚本?

使用pythonsetup.pybdistupload上传我的PythonC扩展的二进制分发后,easy_install[my-package-name]失败并出现“error:Couldn”在/tmp/easy_install/package-name-etc-etc中找不到设置脚本。我做错了什么? 最佳答案 这可能与您的具体问题无关,但我提供此信息以防对其他人有帮助。我在运行easy_installxyz时遇到了这个错误。问题原来是我在当前工作目录中有一个名为xyz的子目录,而easy_install期望在该子目录中本地找到一个

python - 为什么 `pip install hwrt --upgrade`会升级到随机版本(有时也会降级)?

我刚执行完$sudopipinstallhwrt--upgrade安装最新版本的Python包hwrt。我添加了使用hwrt--version获取包版本的可能性。现在我得到了这个奇怪的行为:$hwrt--versionhwrt0.1.201$sudopipinstallhwrt--upgrade[...someoutput...]$hwrt--versionhwrt0.1.203$sudopipinstallhwrt--upgrade[...someoutput...]$hwrt--versionhwrt0.1.205$sudopipinstallhwrt--upgrade[...so

python 没有安装 setuptools 的 install_requires 中列出的依赖项

我写了一个依赖openpyxl的python模块。我希望使用setuptools将openpxyl作为依赖项自动安装。我读到正确的方法是在setup.py脚本中包含以下内容:setup(name='methpipe',version=find_version("lala","__init__.py"),description='Utilities',author='JonathanT',author_email='jt@lala.com',url='https://git.com...',packages=find_packages(),install_requires=['openp

python - pip install numpy 不起作用 : "No matching distribution found"

我是Python新手。我安装了Python2.7.10,它已经带有pip。我尝试运行此命令来下载NumPy库。D:\workspace\python>pipinstallnumpyCollectingnumpyCouldnotfindaversionthatsatisfiestherequirementnumpy(fromversions:)Nomatchingdistributionfoundfornumpy但是我得到了这个错误。我该如何解决这个问题?我也想知道easy_install和pip的区别。 最佳答案 您现在应该可以使用

python - 网络驱动程序错误 : "No alert is present" after UnexpectedAlertPresentException is thrown

我正在尝试测试我正在开发的网络应用程序。我正在使用针对Firefox22.0的Firefox驱动程序。有时,可能会弹出一个模式对话框(一个Javascriptprompt())。如果是这样,我想输入一些文本然后将其关闭(单击“确定”)。相关代码如下:try:ifbutton.text=="Run":button.click()exceptUnexpectedAlertPresentException:alert=self.driver.switch_to_alert()printalert.textalert.send_keys('8080')alert.dismiss()正在抛出Un

python - pip install scikit-image 出错

我使用的是Windows8.164位和Python2.7。尝试从shell安装scikit-imagepipinstallscikit-image我遇到了这个错误:命令“pythonsetup.pyegg_info”在c:\users\france~1\appdata\local\temp\pip-buildtksnfe\scikit-image\中失败,错误代码为1下载没问题,但安装失败。这里有什么问题,如何解决?编辑升级我的pip之后python-mpipinstall-Upipsetuptools再试一次,我得到了:命令“pythonsetup.pyegg_info”在c:\us

python - 如何在 Windows 上使用 pip install 修复错误 “Expected version spec in …”?

在Windows7机器上,我使用以下命令从本地目录安装包:pipinstalladdons/pnc_tests--upgrade--extra-index-url=http://some_server/simple这会导致以下错误:C:\Users\alex\PNC\tas\ENV\Scripts\pip-script.pyrunon07/16/1407:50:47Exception:Traceback(mostrecentcalllast):File"C:\Users\alex\PNC\tas\ENV\lib\site-packages\pip\basecommand.py",lin

python - "error: cannot locate an Oracle software installation"尝试安装 cx_Oracle 时

这里的新手尝试使用python进行一些数据库分析。我不断收到错误:“错误:找不到Oracle软件安装”安装CX_oracle(通过easy_install)时。问题是我的本地机器上没有oracle,我正在尝试使用python连接到主oracle服务器。我已经设置了另一个程序来执行此操作(visualdb),并且我有一个用作驱动程序的.jar文件,但我不确定在这种情况下如何使用它。有什么建议吗? 最佳答案 不要使用easy_install或pip,它们不能很好地安装cx_Oracle,因为安装脚本不会自动设置许多环境依赖项。您需要获得

python - Pandas drop_duplicates - TypeError : type object argument after * must be a sequence, 未映射

我更新了我的问题以提供更清晰的示例。是否可以使用Pandas中的drop_duplicates方法根据值包含列表的列ID删除重复行。考虑由列表中的两个项目组成的“三”列。有没有一种方法可以删除重复的行而不是反复进行(这是我目前的解决方法)。我通过提供以下示例概述了我的问题:importpandasaspddata=[{'one':50,'two':'5:00','three':'february'},{'one':25,'two':'6:00','three':['february','january']},{'one':25,'two':'6:00','three':['februa

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