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

pip install -r requirements.txt出错 #29

Open
Seek-Fog opened this issue Aug 27, 2023 · 12 comments
Open

pip install -r requirements.txt出错 #29

Seek-Fog opened this issue Aug 27, 2023 · 12 comments

Comments

@Seek-Fog
Copy link

屏幕截图 2023-08-27 092201

@AdeCaspeer
Copy link

我也是这样的问题,请问解决了吗

@priyansh4320
Copy link

this issue occurs when some packages that are required in the module cannot be installed

@priyansh4320
Copy link

i can resolve this issue asssign it to me

@zkbys
Copy link

zkbys commented Oct 22, 2023

i can resolve this issue asssign it to me

can you help me?

@1959026884
Copy link

i can resolve this issue asssign it to me
I have the same problem @priyansh4320

@hlxs-c
Copy link

hlxs-c commented Nov 19, 2023

i can resolve this issue asssign it to me

can you help me

@t41372
Copy link

t41372 commented Nov 21, 2023

I had a similar problem when using Python 3.11. I switched to Python 3.7.6 (stated in the readme file), and it worked. Check your python version. Conda is a friend you can rely on.
If you use an ARM machine like an Apple silicon mac with conda and realize that you can't create a Python 3.7 environment with conda, you can do this.

@benjamin-liang
Copy link

我也是这样的问题,请问解决了吗

建议使用conda 环境,给课程安装一个新的运行环境。然后激活此环境。在pip install requirements.txt中的第三方模块时,如果一些下载不下来,建议使用在https://pypi.org/project/下载适合你环境的whl离线包,然后在进行安装

@may010
Copy link

may010 commented Dec 27, 2023

Use a Conda environment set to Python 3.7.6

conda install python=3.7.6

and execute the command:

conda install pycurl

to manually install this library. Afterward, use:

conda install --file requirements.txt

to install other requirements.

@allen-studio
Copy link

s.

Use a Conda environment set to Python 3.7.6

conda install python=3.7.6

and execute the command:

conda install pycurl

to manually install this library. Afterward, use:

conda install --file requirements.txt

to install other requirements.

it works

@myg321
Copy link

myg321 commented Aug 22, 2024

我也是这样的问题,请问解决了吗

建议使用conda 环境,给课程安装一个新的运行环境。然后激活此环境。在pip install requirements.txt中的第三方模块时,如果一些下载不下来,建议使用在https://pypi.org/project/下载适合你环境的whl离线包,然后在进行安装

老哥,我就是这样做的,但是我执行 pip install -r requirements.txt 安装所有包之后,再使用 conda list 或者 pip list 查看已安装过的包,结果输出显示非常少,与requirements文件中的包的数量严重不符,不知道这是为什么。

@benjamin-liang
Copy link

我也是这样的问题,请问解决了吗

建议使用conda 环境,给课程安装一个新的运行环境。然后激活此环境。在pip install requirements.txt中的第三方模块时,如果一些下载不下来,建议使用在https://pypi.org/project/下载适合你环境的whl离线包,然后在进行安装

老哥,我就是这样做的,但是我执行 pip install -r requirements.txt 安装所有包之后,再使用 conda list 或者 pip list 查看已安装过的包,结果输出显示非常少,与requirements文件中的包的数量严重不符,不知道这是为什么。

1首先确保你创建了一个新的环境,验证命令:coda env list,查看是否存在新创建的virtual env,我个人在本课程使用的pyhton版本为3.7.5,供参考
2 激活新创建的环境,conda activate xxx
3 命令行切换到 requirements.txt所在的同级目录下,执行:pip install -r requirements.txt
当然,如果网络问题,可能你需要配置一下conda 的国内channel。

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