[Exchange and share] python3-venv install problem
Tofloor
poster avatar
1***2@qq.com
deepin
2023-03-22 06:35
Author

unable to install python3-venv on deepin v23.

I typed the following commands:

sudo apt install python3-venv

here is the log in terminal:

Verification successful
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
 python3.10-venv : Depends: python3-pip-whl but it is not installable
                   Depends: python3-setuptools-whl but it is not installable
E: Unable to correct problems, you have held broken packages.
Reply Favorite View the author
All Replies
1***2@qq.com
deepin
2023-03-22 06:35
#1

I would be appreciated if you can help me, thank you.

Reply View the author
angelfind
deepin
2023-03-22 07:34
#2

The system comes with venv when installing python 3. x,

Correct command: python3 -m venv YourProjectDirName

Reply View the author
夏目贵志
deepin
2023-03-22 07:58
#3

If you want to configure multiple python environments on one system, we suggest you use this.

I have 3 versions of python installed on a single system.

Here is the address : https://github.com/pyenv/pyenv You can see the tutorial.

Reply View the author