Hi Trisquel Users!
Today I hit a problem when trying to install the package python3-venv.
It seems to depend upon python3.5-venv and that depends on
python-pip-whl, which does not have any installation candidate on
Trisquel. Here are the outputs of commands I tried:
~~~~~~~~
$ sudo apt-get install python3-venv
Reading package lists... DoneBuilding dependency tree
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-venv : Depends: python3.5-venv (>= 3.5.1-2~) but it is not going to be
installed
E: Unable to correct problems, you have held broken packages.
$ dpkg --get-selections | grep hold
(nothing)
$ sudo aptitude install python3.5-venv
The following NEW packages will be installed: python3.5-venv{b}
0 packages upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 6.020 B of archives. After unpacking 28,7 kB will be used.
The following packages have unmet dependencies: python3.5-venv :
Depends: python-pip-whl (>= 8.1.0-2) which is a virtual package and is not
provided by any available package. The following actions will resolve these
dependencies:
Keep the following packages at their current version:
1) python3.5-venv [Not Installed]
Accept this solution? [Y/n/q/?] Y
No packages will be installed, upgraded, or removed.
0 packages upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Need to get 0 B of archives. After unpacking 0 B will be used.
~~~~~~~~
Can I still get Python Venv for Python 3 working somehow?
I see, that in Ubuntu the package does exist:
https://packages.ubuntu.com/xenial/python-pip-whl
Regards,
Zelphir
On 12/23/19 12:00 PM, [email protected] wrote:
> Message: 1
> Date: Sun, 22 Dec 2019 18:01:25 +0100 (CET)
> From: [email protected]
> To: [email protected]
> Subject: Re: [Trisquel-users] Cannot install python-pip, python-typing
> Message-ID:
>
> <listhandler=2&site=trisquel.info&nid=26389&pid=0&cid=145695&uid=20544&tid=50&[email protected]>
>
> Content-Type: text/plain; charset=UTF-8; format=flowed; delsp=yes
>
> When programming with python in general, you might want to have multiple
> versions of python available - and even if not required by your developing
> work, you still might want to separate the system python from the python
> version you use for programming.
>
> An extremely handy tool for this is pyenv (https://github.com/pyenv/pyenv).
> See https://realpython.com/intro-to-pyenv/ for a good introduction on how to
>
> use pyenv.
>
> Why am I saying all this? Because once you have pyenv installed, you can
> install a separate python version on your computer in which pip will be
> available.
>
> To keep your computer free from proprietary software, you will of course have
>
> to check manually all licences of the packages you install through pip.