草庐IT

check_installed

全部标签

node.js - docker:创建新用户后运行 npm install 时遇到问题

所以我有另一个关于在CoreOS上的Docker下安装基于node.js的框架的后续问题,根据thispost.因此,由于npm对通过root从package.json进行安装非常挑剔,因此我必须创建一个非root的sudo用户才能安装该软件包。这是我的Dockerfile目前在我们的仓库中的样子,建立在一个ubuntu镜像之上:#InstalldependenciesandnodejsRUNapt-getupdateRUNapt-getinstall-ypython-software-propertiespythong++makeRUNadd-apt-repositoryppa:ch

Python 子进程 .check_call 与 .check_output

我的python脚本(python3.4.3)通过子进程调用bash脚本:importsubprocessasspres=sp.check_output("bashscript",shell=True)bashscript包含以下行:ssh-MNfsomehost它打开一个到某个远程主机的共享主连接以允许一些后续操作。在执行python脚本时,它会提示输入ssh行的密码,但是输入密码后它会阻塞并且永远不会返回。当我ctrl-C终止脚本时,我看到连接已正确建立(因此ssh行已成功执行)。我在使用check_call而不是check_output时没有这个阻塞问题,但是check_call

python - 错误 : 'conda' can only be installed into the root environment

当我尝试安装python包seaborn时出现以下错误:condainstall--namedato-envseabornError:'conda'canonlybeinstalledintotherootenvironment这当然令人费解,因为我并没有尝试安装conda。我正在尝试安装seaborn。这是我的设置。我有3个python环境:dato环境py35根我之前成功安装了seaborn(使用命令condainstallseaborn),但它安装在根环境中(并且不适用于我正在使用的iPython笔记本dato环境)。我尝试在dato-env环境中安装seaborn,以便我的iP

python - 警告 : The Command Line Tools for Xcode don't appear to be installed; most ports will likely fail to build

已结束。这个问题是off-topic.它目前不接受答案。想要改进这个问题?Updatethequestion所以它是on-topic堆栈溢出。关闭9年前。Improvethisquestion我试图在我的新Mac上实际安装biopython。Python2.7已经安装在其中。要安装biopython,我发现用macports安装很好。现在要安装macports,我需要xcode,但是在运行Xcode之后,我安装了成功安装的macports。然后尝试使用以下命令安装biopython:sudo端口安装py27-biopython但最终收到这样的警告:警告:Xcode的命令行工具似乎没有安

python - 无法安装 scipy - 卡住在 "Running setup.py install for scipy"

当我运行时sudopipinstall-Uscipy先下载然后再显示Runningsetup.pyinstallforscipy但它在那里卡住。我尝试升级pip本身。工作得很好。我的pip版本是1.5.4我得到的唯一错误是InsecurePlatforWarning。完整的输出如下所示:tom@tom-ThinkPad-Edge-E430:~$sudopipinstall-UscipyThedirectory'/home/tom/.cache/pip/http'oritsparentdirectoryisnotownedbythecurrentuserandthecachehasbee

python - 无法使用 pip install requirements.txt 安装

已结束。这个问题是notreproducibleorwascausedbytypos.它目前不接受答案。此问题是由拼写错误或无法再重现的问题引起的。虽然类似的问题可能是on-topic在这里,这个问题的解决方式不太可能帮助future的读者。关闭5年前。Improvethisquestion我正在尝试安装BitTornado对于使用requirements.txt的Python2.7,我收到以下错误:Collectingrequirements.txtCouldnotfindaversionthatsatisfiestherequirementrequirements.txt(from

python - Easy_install 和 Pip 不起作用

当我尝试这样做时,Easy_install和Pip不再适用于python2.7:sudoeasy_installpip我明白了:Traceback(mostrecentcalllast):File"/usr/bin/easy_install",line5,infrompkg_resourcesimportload_entry_pointFile"/usr/bin/lib/python2.7/site-packages/distribute-0.6.19-py2.7.egg/pkg_resources.py",line2713,inparse_requirements(__require

python - Scrapy 和响应状态码 : how to check against it?

我正在使用scrapy抓取我的站点地图,以检查404、302和200个页面。但我似乎无法获得响应代码。到目前为止,这是我的代码:fromscrapy.contrib.spidersimportSitemapSpiderclassTothegoSitemapHomesSpider(SitemapSpider):name='tothego_homes_spider'##robecheciservonopertothego##sitemap_urls=[]ok_log_file='/opt/Workspace/myapp/crawler/valid_output/ok_homes'bad_l

python - setuptools 和 pip : choice of minimal and complete install

我们创建了一个依赖于其他库的库。但是有必要的(例如用于服务器批处理)和可选的依赖项(例如用于具有GUI的客户端)。这样的事情可能吗:pipinstallmylib.tar.gz#automaticallydownloadsandinstallswiththeminimalsetofdependenciespipinstallmylib.tar.gz--install-option="complete"#automaticallyinstallswithalldependencies我找到了extra_require标志,但我如何告诉pip使用它们?setup.py如下所示:fromse

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.