草庐IT

install-configuration

全部标签

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 - 从代理服务器后面使用 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 - TensorFlow 的 ./configure 在哪里以及如何启用 GPU 支持?

在我的Ubuntu上安装TensorFlow时,我想将GPU与CUDA结合使用。但我在OfficialTutorial中的这一步停止了:这个./configure到底在哪里?或者我的源代码树的根在哪里。我的TensorFlow位于此处/usr/local/lib/python2.7/dist-packages/tensorflow。但是我还是没有找到./configure。编辑我根据SalvadorDali'sanswer找到了./configure.但是在执行示例代码时,出现以下错误:>>>importtensorflowastf>>>hello=tf.constant('Hello

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 - 运行时错误 : cannot access configuration outside request

出现以下错误:RuntimeError:cannotaccessconfigurationoutsiderequest从执行以下代码:#-*-coding:utf-8-*-fromflaskimportFlask,request,render_template,redirect,url_forfromflaskext.uploadsimportUploadSet,configure_uploads,patch_request_classapp=Flask(__name__)csvfiles=UploadSet('csvfiles','csv',"/var/uploads")@app.r

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 - 无法使用 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