Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

总是提示报错 #9

Open
skyceo121 opened this issue Aug 26, 2024 · 13 comments
Open

总是提示报错 #9

skyceo121 opened this issue Aug 26, 2024 · 13 comments

Comments

@skyceo121
Copy link

是不是只能在python3.8 版本使用 我在其他版本总是提示有些文件用高版本提示停用。还有我这个事苹果电脑m2 是不是有冲突。我后面用3.8版本 感觉还是一样的报错。搞了一天都没有弄好。

@charliedream1
Copy link
Owner

charliedream1 commented Aug 26, 2024 via email

@skyceo121
Copy link
Author

ERROR: Could not find a version that satisfies the requirement yaml~=0.2.5 (from versions: none)
ERROR: No matching distribution found for yaml~=0.2.5
应该是一些包装不好。我现在切换到3.8版本 就提示报这个错误 就是安装你那个依赖的时候时不时来报一个错,麻烦大神教教我?

@charliedream1
Copy link
Owner

charliedream1 commented Aug 26, 2024 via email

@skyceo121
Copy link
Author

大神 我现在已经改了了版本 最新的yaml. Successfully installed pyyaml-6.0.2
提示这些 你看看ERROR: Ignored the following versions that require a different python version: 2.1.0 Requires-Python >=3.9; 2.1.0rc0 Requires-Python >=3.9; 2.1.1 Requires-Python >=3.9; 2.1.2 Requires-Python >=3.9; 2.1.3 Requires-Python >=3.9; 2.1.4 Requires-Python >=3.9; 2.2.0 Requires-Python >=3.9; 2.2.0rc0 Requires-Python >=3.9; 2.2.1 Requires-Python >=3.9; 2.2.2 Requires-Python >=3.9
ERROR: Could not find a version that satisfies the requirement yaml~=0.2.5 (from versions: none)
ERROR: No matching distribution found for yaml~=0.2.5
麻烦了

@skyceo121
Copy link
Author

他提示安装yaml要python3.9以上 但是我们用的这个是3.8

@charliedream1
Copy link
Owner

charliedream1 commented Aug 26, 2024 via email

@skyceo121
Copy link
Author

(site-packag) (base) skyceo@skyceodeMacBook-Pro myenv % python --version
Python 3.9.6
(site-packag) (base) skyceo@skyceodeMacBook-Pro myenv % pip install -r requirements.txt

提示一样的错误。我现在切换到3.9.6

@skyceo121
Copy link
Author

我切换到3.12的版本 一直都是提示这个问题 error: subprocess-exited-with-error

× Preparing metadata (pyproject.toml) did not run successfully.
│ exit code: 1
╰─> [1556 lines of output]
:17: DeprecationWarning: pkg_resources is deprecated as an API. See https://setuptools.pypa.io/en/latest/pkg_resources.html
Partial import of sklearn during the build process.
:116: DeprecationWarning:

    `numpy.distutils` is deprecated since NumPy 1.23.0, as a result

这个错误我到网上也找了很多答案 一直也没解决出来。

@bCoder778
Copy link

我也有同样的问题,完全新环境,无法安装

@shijunti19
Copy link

怎么解决啊,需要作者本人处理下

@charliedream1
Copy link
Owner

charliedream1 commented Oct 20, 2024 via email

@shijunti19
Copy link

@charliedream1

 pyenv local  3.9.13
(cosyvoice) PS X:\ai\gupiao\ai_quant_trade>
(cosyvoice) PS X:\ai\gupiao\ai_quant_trade> pip install -r requirements.txt
Collecting flake8~=3.9.0 (from -r requirements.txt (line 1))
  Using cached flake8-3.9.2-py2.py3-none-any.whl.metadata (3.7 kB)
Collecting pandas~=1.2.4 (from -r requirements.txt (line 2))
  Using cached pandas-1.2.5-cp39-cp39-win_amd64.whl.metadata (4.7 kB)
Collecting tushare~=1.2.85 (from -r requirements.txt (line 3))
  Using cached tushare-1.2.89-py3-none-any.whl.metadata (2.4 kB)
Collecting yfinance~=0.1.70 (from -r requirements.txt (line 4))
  Using cached yfinance-0.1.96-py2.py3-none-any.whl.metadata (11 kB)
Collecting scikit-learn~=0.24.1 (from -r requirements.txt (line 5))
  Using cached scikit_learn-0.24.2-cp39-cp39-win_amd64.whl.metadata (9.8 kB)
Collecting PyQt5 (from -r requirements.txt (line 6))
  Using cached PyQt5-5.15.11-cp38-abi3-win_amd64.whl.metadata (2.1 kB)
Collecting matplotlib~=3.3.4 (from -r requirements.txt (line 7))
  Using cached matplotlib-3.3.4-cp39-cp39-win_amd64.whl.metadata (5.7 kB)
Collecting ffn~=0.3.6 (from -r requirements.txt (line 8))
  Using cached ffn-0.3.9-py3-none-any.whl.metadata (3.6 kB)
ERROR: Could not find a version that satisfies the requirement yaml~=0.2.5 (from versions: none)
ERROR: No matching distribution found for yaml~=0.2.5

不行我换成3.8.1么他要提示pip install --upgrade pip
然后ERROR: Could not find a version that satisfies the requirement yaml~=0.2.5 (from versions: none)
ERROR: No matching distribution found for yaml~=0.2.5
反正搞不定
我用pyenv

@charliedream1
Copy link
Owner

charliedream1 commented Oct 20, 2024 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants