[tahoe-lafs-trac-stream] [Tahoe-LAFS] #3696: Fix for Ubuntu 20.4 bug on Python-virtualenv

Tahoe-LAFS trac at tahoe-lafs.org
Thu May 6 12:47:40 UTC 2021


#3696: Fix for Ubuntu 20.4 bug on Python-virtualenv
-------------------------+--------------------------------------
     Reporter:  amj      |      Owner:  amj
         Type:  defect   |     Status:  closed
     Priority:  major    |  Milestone:  Automate Release Process
    Component:  unknown  |    Version:  n/a
   Resolution:  fixed    |   Keywords:
Launchpad Bug:           |
-------------------------+--------------------------------------
Changes (by amj):

 * status:  new => closed
 * resolution:   => fixed


Old description:

> fixing "python-virtualenv has no installation candidate"
> Solution:
>
> 1. create a special directory that will hold all of your virtual
> environments so proceed with creating a new hidden directory called
> '''virtualenv.'''
>
> {{{
> mkdir .virtualenv
> }}}
>
> 2. Install pip for Python3.
>
> {{{
> sudo apt install python3-pip
> }}}
>
> 3. Confirm the pip3 installation.
>
> {{{
> pip3 -V
> }}}
>

> 4. Install virtualenvwrapper via pip3:
>
> {{{
> pip3 install virtualenvwrapper
> }}}
>

> 5. Modify your .bashrc file by adding a row that will adjust every new
> virtual environment to use Python 3. We will point virtual environments
> to the directory we created above (.virtualenv) and we will also point to
> the locations of the virtualenv and virtualenvwrapper.
> Now open the .bashrc file using any editor(we use Vim).
>
> {{{
> vim .bashrc
> }}}
>
> 6. Navigate to the bottom of the .bashrc file, press the letter i to
> enter the insert mode of Vim and add these rows:
>
> {{{
> #Virtualenvwrapper settings:
> export WORKON_HOME=$HOME/.virtualenvs
> VIRTUALENVWRAPPER_PYTHON=/usr/bin/python3
> . /usr/local/bin/virtualenvwrapper.sh
> }}}
>
> 5. save and exit the Vim editor.
> 6. Reload the bashrc script:
>
> {{{
> source ~/.bashrc
> }}}
>
> 7. create a virtual environment in Python3 and activate it immediately:
>
> {{{
> mkvirtualenv name_of_your_env
> }}}

New description:

 fixing "python-virtualenv has no installation candidate"
 Solution:

 Use
 {{{
 apt install virtualenv
 }}}

--

--
Ticket URL: <https://tahoe-lafs.org/trac/tahoe-lafs/ticket/3696#comment:5>
Tahoe-LAFS <https://Tahoe-LAFS.org>
secure decentralized storage


More information about the tahoe-lafs-trac-stream mailing list