0
Follow
0
View

An error message indicating metadata-generation-failed is displayed when installing the virtual environment in linux

duliuji10 注册会员
2023-02-27 20:21

This is usually because setuptools is not installed correctly.

Verify that the pip package manager is installed, if not you can do so by using the following command:

sudo apt-get install python-pip
Verify that setuptools is installed correctly. If it is not installed, you can install it with the following command:

sudo apt-get install python-setuptools
Upgrade setuptools:
sudo easy_install -u setuptools
Clear cache:

sudo rm -rf ~/.cache/pip/
Reinstall virtual environment:

sudo pip install virtualenv
Still does not solve the problem, you can try to remove the old version of setuptools and reinstall the latest version.

csharp
Copy code
sudo apt-get remove python-setuptools
sudo pip install setuptools

dabao021 注册会员
2023-02-27 20:21

Run the batch installation command

pip install -r requirements.txt -i https://pypi.tuna.tsinghua.edu.cn/simple

Before

, execute

PIP install setuptools = = 57.5.0 -i < a href = "https://pypi.tuna.tsinghua.edu.cn/simple" target="_blank"> https://pypi.tuna.tsinghua.edu.cn/simple

command

About the Author

Question Info

Publish Time
2023-02-27 20:21
Update Time
2023-02-27 20:21

Related Question

Regex golang在花括号内的模式的最后匹配

我如何运行C程序与输入在Netbeans

android videoview播放不了视频

golang 是否需要将MVC的服务单例

Eslint wong error '被定义但从未使用'警告在所有装饰器的内斯特js中

android12 set project id

如何在Django中为/category/subcategory/post设置嵌套URL模式?

Django模型中的一对多字段

Vscode /pylance自动导入错误的根路径

idea从git上克隆项目后报错 cannot spawn git-submodule: Exec format error