Install python3-venv module on linux mint

后端 未结 4 551
陌清茗
陌清茗 2020-12-28 16:19

I was able to move to Linux mint 17.3 64 bit version from my Linux mint 16. This was long awaited migration.

After moving to Linux Mint 17.3, I am not able to the i

相关标签:
4条回答
  • 2020-12-28 16:33
    1. Update all packages
    sudo apt-get update
    
    1. Install virtual environment 3
    apt-get install python3-venv
    apt install virtualenv
    
    1. Check that it has been installed
    virtualenv --version
    

    Note: that this is for ubuntu 20 or variants

    0 讨论(0)
  • 2020-12-28 16:39

    For python 3.6 I found out it was a locale issue, running this:

    export LC_ALL="en_US.UTF-8"
    export LC_CTYPE="en_US.UTF-8"
    sudo dpkg-reconfigure locales
    

    Seems to solve the issue.

    Source from this answer

    0 讨论(0)
  • 2020-12-28 16:45

    Try running this command:

    sudo apt-get install python3.4-venv
    

    Then use this:

    python3 -m venv test
    

    the package name is python3.4-venv and not python3-venv.

    0 讨论(0)
  • 2020-12-28 16:45

    I use python 3.6 , and so the following did the trick for me: $ sudo apt-get install python3.6-venv

    (the problem was that apt-get install python3-venv would virtualenv for 3.5)

    0 讨论(0)
提交回复
热议问题