requirements.txt 安装 Nashpy 库时丢失

requirements.txt missing when installing Nashpy library

我是 python 的新手,无法安装库 Nashpy。 https://nashpy.readthedocs.io/en/stable/tutorial/index.html#installing-nashpy 上的安装说明是,如果我理解正确的话,只需在 Anaconda 提示符中输入 pip install nashpy 即可。但是,当我这样做时,我收到以下错误

(base) C:\Users\Emanuel>pip install nashpy Collecting nashpy Using cached nashpy-0.0.22.tar.gz (11 kB) ERROR: Command errored out with exit status 1: command: 'C:\Users\Emanuel\anaconda3\python.exe' -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\Users\Emanuel\AppData\Local\Temp\pip-install-dd2taahb\nashpy\setup.py'"'"'; file='"'"'C:\Users\Emanuel\AppData\Local\Temp\pip-install-dd2taahb\nashpy\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(file);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' egg_info --egg-base 'C:\Users\Emanuel\AppData\Local\Temp\pip-install-dd2taahb\nashpy\pip-egg-info' cwd: C:\Users\Emanuel\AppData\Local\Temp\pip-install-dd2taahb\nashpy
Complete output (5 lines): Traceback (most recent call last): File "", line 1, in File "C:\Users\Emanuel\AppData\Local\Temp\pip-install-dd2taahb\nashpy\setup.py", line 6, in with open("requirements.txt") as f: FileNotFoundError: [Errno 2] No such file or directory: 'requirements.txt' ---------------------------------------- ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.

我已经查看了这个问题(尤其是如何创建所需的需求文件),但是 none 其他线程解决了我的问题。

感谢您的帮助!

P.S.: 我有 Python 版本 3.7.6,Anaconda 版本 4.8.3(并通过 anaconda 安装)Numpy 版本 1.18.1 和 Scipy 版本 1.4.1 .

我找到了方法,所以我会 post 解决方案以供将来参考:

https://pypi.org/project/nashpy/#files下载文件nashpy-0.0.23-py3-none-any.whl并执行

pip install nashpy-0.0.23-py3-none-any.whl

同时确保您拥有满足版本要求的所需软件包,并确保您在下载文件的目录中。

这是 nashpy 版本 0.0.22 中的错误。现在有一个 release 0.0.23 所以你可以用

安装它
pip --no-cache-dir install nashpy

PS。 --no-cache-dir就是忽略你缓存的nashpy-0.0.22.tar.gz.