草庐IT

awslogs-agent-setup

全部标签

python - 无法使用 PIP 和 setup.py 安装 Python Cryptography 包

当我尝试安装Cryptography通过pipinstallcryptography或从theirsite下载包的Python包并运行pythonsetup.py,我得到以下错误:D:\Anaconda\Scripts\pip-script.pyrunon02/27/1416:13:17Downloading/unpackingcryptographyGettingpagehttps://pypi.python.org/simple/cryptography/URLstosearchforversionsforcryptography:*https://pypi.python.org/

python - "pip install unroll": "python setup.py egg_info" failed with error code 1

我是Python新手,一直在尝试使用pip安装一些软件包。但是pipinstallunroll给了我Command"pythonsetup.pyegg_info"failedwitherrorcode1inC:\Users\MARKAN~1\AppData\Local\Temp\pip-build-wa7uco0k\unroll\我该如何解决这个问题? 最佳答案 关于错误代码根据thePythondocumentation:Thismodulemakesavailablestandarderrnosystemsymbols.Thev

python setup.py 卸载

我已经用pythonsetup.pyinstall安装了一个python包。如何卸载它? 最佳答案 注意:避免使用pythonsetup.pyinstall使用pipinstall.您需要手动删除所有文件,并撤消安装手动执行的任何其他操作。如果您不知道所有文件的列表,可以使用--record选项重新安装它,然后查看生成的列表。要记录已安装文件的列表,可以使用:pythonsetup.pyinstall--recordfiles.txt一旦您想卸载,您可以使用xargs进行删除:xargsrm-rf或者,如果您运行的是Windows,

python - 使用 Cython 的 setup_requires?

我正在为带有一些Cython扩展模块的项目创建一个setup.py文件。我已经让这个工作了:fromsetuptoolsimportsetup,ExtensionfromCython.Buildimportcythonizesetup(name=...,...,ext_modules=cythonize([...]),)这安装得很好。但是,这假设安装了Cython。如果没有安装怎么办?我知道这就是setup_requires参数的用途:fromsetuptoolsimportsetup,ExtensionfromCython.Buildimportcythonizesetup(name

python - 在 setup.py 中清理构建目录

如何让我的setup.py预删除和后删除构建目录? 最佳答案 是否this回答问题?IIRC,您需要使用--all标志来摆脱build/lib之外的东西:pythonsetup.pyclean--all 关于python-在setup.py中清理构建目录,我们在StackOverflow上找到一个类似的问题: https://stackoverflow.com/questions/1594827/

UE5发布时出现SDK NOT Setup错误解决方法

UE5项目打包时出现SDK未设置(SDKNOTSETUP)的弹出错误原因是缺少了.Net环境,以及没有安装WindowsSDK参考以下视频教程:【UE5】如何修正SDKNotSetup_哔哩哔哩_bilibili第一步:下载WindowsSDK下载地址如下:WindowsSDK-Windows应用开发|MicrosoftDeveloper下载并安装第二步:复制hostfxr.dll文件:从C:\ProgramFiles\EpicGames\UE_5.0\Engine\Binaries\ThirdParty\DotNet\Windows\host\fxr\3.1.9复制,粘贴到C:\Progra

python - MANIFEST.in 在 "python setup.py install"上被忽略 - 没有安装数据文件?

这是我精简后的setup.py脚本,其中删除了非代码内容:#!/usr/bin/envpythonfromdistutils.coreimportsetupfromwhyteboard.miscimportmetasetup(name='Whyteboard',version=meta.version,packages=['whyteboard','whyteboard.gui','whyteboard.lib','whyteboard.lib.pubsub','whyteboard.lib.pubsub.core','whyteboard.lib.pubsub.utils','why

ruby - 在哪里放置 ruby​​ .gem 文件以便 Shoes.setup 可以找到它们?

关于鞋子中gem支持的问题很多,但没有人回答将它们放在哪里。我在WindowsXP上安装了ShoesRaisins1134,我已经下载了dbi-0.4.1.gem并正在尝试使以下内容正常工作:Shoes.setupdogem'dbi'endrequire'dbi'Shoes.app...end当我运行它时,我得到一个对话框,上面写着Installingdbi--Lookingfordbi,它坐了几个小时都没有找到gem文件。我试过将它放在以下所有地方都无济于事:包含上述脚本的文件夹D:\ProgramFiles\CommonFiles\Shoes\0.r1134\ruby\gemsD:

ruby-on-rails - 需要 'bundler/setup' 和 'Bundler.require' 做什么?

在Rails应用程序中,在boot.rb中,有一行:require'bundler/setup'ifFile.exists?(ENV['BUNDLE_GEMFILE'])在application.rb中,还有一行:Bundler.require(:default,Rails.env)您能否简要解释一下Rails/Bundler在require'bundler/setup'和'Bundler.require'中做了什么?bundler/setup需要Bundler,Bundler.require需要Gemfile中的所有gem,这是否有效? 最佳答案

ruby-on-rails - Learn Enough Setup 的 Ruby 安装失败 - Puma gem 安装错误,Mac Sierra

我运行了geminstallpuma但由于这些错误而失败。我正在尝试为LearnEnoughRuby教程设置Ruby。[developer]$geminstallpuma-v'3.4.0'Buildingnativeextensions.Thiscouldtakeawhile...ERROR:Errorinstallingpuma:ERROR:Failedtobuildgemnativeextension.currentdirectory:/Users/Jim/.rvm/gems/ruby-2.4.0@newgemset/gems/puma-3.4.0/ext/puma_http11/