草庐IT

install_dir

全部标签

python - 何时在 setup.py 中使用 pip 需求文件与 install_requires?

我正在使用pip和virtualenv来打包和安装一些Python库。我想我正在做的是一个很常见的场景。我是几个库的维护者,我可以为其明确指定依赖项。我的一些库依赖于我无法控制的具有传递依赖关系的第三方库。我想要实现的是pipinstall在我的一个库上下载/安装其所有上游依赖项。我在pip文档中苦苦挣扎的是if/howrequirementsfiles可以自己执行此操作,或者如果它们真的只是使用install_requires的补充。我是否会在我的所有库中使用install_requires来指定依赖项和版本范围,然后只使用需求文件来解决冲突和/或卡住它们以用于生产构建?假设我生活在

python - 通过 pip 安装 lxml 时出现 "Could not find function xmlCheckVersion in library libxml2. Is libxml2 installed?"

我收到一个错误在库libxml2中找不到函数xmlCheckVersion。是否安装了libxml2?尝试通过pip安装lxml时。c:\users\f\appdata\local\temp\xmlXPathInitqjzysz.c(1):fatalerrorC1083:Cannotopenincludefile:'libxml/xpath.h':Nosuchfileordirectory*********************************************************************************Couldnotfindfunctio

python - pip 抛出 TypeError : parse() got an unexpected keyword argument 'transport_encoding' when trying to install new packages

我正在使用最新版本的Anaconda3。我刚刚安装了它,我正在尝试下载一些软件包。我正在使用Anaconda提示。在尝试使用pip做任何事情(包括升级现有软件包)时,我得到以下回溯。Exception:Traceback(mostrecentcalllast):File"C:\Users\csprock\Anaconda3\lib\site-packages\pip\basecommand.py",line215,inmainstatus=self.run(options,args)File"C:\Users\csprock\Anaconda3\lib\site-packages\pi

java - 如何: Eclipse Maven install build jar with dependencies

我在Eclipse中使用EclipseMaven(m2e),我正在像这样运行我的项目:我的pom.xml看起来像这样:4.0.0ro.projectjar1.0-SNAPSHOTro.project3.1.1.RELEASE4.1.0.Finalorg.springframeworkspring-core${org.springframework.version}org.apache.maven.pluginsmaven-jar-plugintruelib/ro.project.ProjectServermaven-antrun-plugincom.suntools1.7.0_02sy

java - 当流未明确关闭时,Files.list(Path dir) 中的资源泄漏?

我最近编写了一个定期检查目录内容的小应用程序。一段时间后,由于打开的文件句柄过多,应用程序崩溃了。经过一番调试,我发现了下面一行的错误:Files.list(Paths.get(destination)).forEach(path->{//Tostuff});然后我检查了Files.list的javadoc(我可能早该这样做)发现:*Thereturnedstreamencapsulatesa{@linkDirectoryStream}.*Iftimelydisposaloffilesystemresourcesisrequired,the*{@codetry}-with-resour

Java - 使用 System.getProperty ("user.dir")获取主目录

这个问题在这里已经有了答案:Whatisthebestwaytofindtheuser'shomedirectoryinJava?(9个回答)关闭4年前。我想知道是否使用:System.getProperty("user.dir");获取文件夹的绝对路径是最好的方法吗?我希望将我的应用程序传递到其他计算机上,我需要一个完整的证明方法来获取“主”目录,这样当我需要使用其他文件夹时,我就可以添加到路径中:Stringpath=System.getProperty("user.dir");StringotherFolder=path+"\\other"; 最佳答案

java - Android Studio 错误 : "Environment variable does not point to a valid JVM installation"

尝试在我的计算机上运行AndroidStudio时,我收到以下错误:TheEnvironmentvariableJAVA_HOME(withavalueofC:\Program Files(x86)\Java\jdk1.7.0_51\bin)doesnotpointtoavalidJVMinstallation我试图删除JAVA_HOME环境变量上的\bin扩展,但它给了我以下错误:NoJVMFound.Pleaseinstalla64-bitJDK.IfyoualreadyhaveaJDKinstalled,defineaJAVA_HOMEvariableinComputer>Sys

java - 如何在我的 android 应用程序中修复 INSTALL_PARSE_FAILED_MANIFEST_MALFORMED

您好,我正在尝试使用gcm,但无法使其正常工作。不知道我在哪里弄乱它,下面是我得到的错误。我正在尝试直接在设备上部署我的应用程序并从那里进行调试,但是当我尝试部署它时会出现此错误Waitingfordevice.Targetdevice:HT24LW108632Uploadingfilelocalpath:D:\Data\Android\AndroidTest\out\production\AndroidTest\AndroidTest.apkremotepath:/data/local/tmp/Android.TestInstallingAndroid.TestDEVICESHELL

java - 设置操作系统环境变量后,Apache Maven install "' mvn' not Recognized as an internal or external command"?

锁定。这个问题及其答案是locked因为这个问题是题外话,但具有历史意义。它目前不接受新的答案或交互。我已按照官方安装说明here适用于WindowsXP。但有时当我执行mvn--version时,我会收到错误消息,'mvn'notrecognizedasaninternalorexternalcommand我什至重新启动了我的机器几次,但操作系统并不总是能识别maven命令。但是当我执行cd%M2_HOME%或cd%M2%时,它会将我带到安装目录。我还确保将用户变量M2添加到Path系统变量中。那么,什么给了? 最佳答案 解决方法

java - 错误未知失败(在 android.os.Binder.execTransact(Binder.java :565)) Error while Installing APKs

谁能告诉我这是什么意思?一切都很好,我没有改变任何东西,只是发生了,这是Binder565中的代码:try{res=onTransact(code,data,reply,flags);}catch(RemoteException|RuntimeExceptione){if(LOG_RUNTIME_EXCEPTION){Log.w(TAG,"CaughtaRuntimeExceptionfromthebinderstubimplementation.",e);}if((flags&FLAG_ONEWAY)!=0){if(einstanceofRemoteException){Log.w(