Python Forum
Not able to set up a virtual environment with venv
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Not able to set up a virtual environment with venv
#7
(Oct-24-2020, 01:25 PM)snippsat Wrote:
(Oct-24-2020, 10:43 AM)mohanp06 Wrote: This is the command I entered inside the 'environments' folder in which I wish to create different environments.
test_env will be the environment folder,you shall not do this command inside other environments.
Quick demo with Mint 19.1.
# Test python tom@tom-VirtualBox:~$ python -V Python 3.8.5 # Test pip tom@tom-VirtualBox:~$ pip -V pip 20.2.3 from /home/tom/.pyenv/versions/3.8.5/lib/python3.8/site-packages/pip (python 3.8) # Make environment tom@tom-VirtualBox:~$ python -m venv test_env # cd in tom@tom-VirtualBox:~$ cd test_env/ # Activate, see (test_env) tom@tom-VirtualBox:~/test_env$ source bin/activate # Test pip again,point now to test_env folder (test_env) tom@tom-VirtualBox:~/test_env$ pip -V pip 20.1 from /home/tom/test_env/lib/python3.8/site-packages/pip (python 3.8) (test_env) tom@tom-VirtualBox:~/test_env$ 

This is what I did but I was getting error, so this post...
Reply


Messages In This Thread
RE: Not able to set up a virtual environment with venv - by mohanp06 - Oct-27-2020, 11:08 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Venv - Python Virtual Environment on Raspberry Pi DanneA 4 1,720 Jul-02-2025, 05:41 PM
Last Post: Larz60+
  Start Idle in a virtual environment Pedroski55 8 3,301 Jun-02-2025, 05:53 AM
Last Post: Pedroski55
  How does venv update $PATH without activating on Windows? bottomfeeder 3 2,106 Mar-13-2025, 01:46 PM
Last Post: DeaD_EyE
  I cannot create a virtual environment on visual studio code using python Willem_Aucamp316 2 12,180 Nov-27-2024, 02:20 PM
Last Post: menator01
  How to enable Matplotlib within virtual environment? tetris_theMovie 1 1,944 Oct-11-2024, 09:56 AM
Last Post: christie2
  JenkinsFile to create a Python venv NikitaMathur 2 3,204 Sep-23-2024, 11:33 AM
Last Post: NikitaMathur
  Troubleshooting Jupyter Notebook installation with Python using pip and a venv Drone4four 1 5,366 Jun-04-2024, 10:55 PM
Last Post: Drone4four
  Need help setting up trusted root ca in virtual environment dstempfley 0 1,861 May-31-2024, 03:14 PM
Last Post: dstempfley
  Help with creating folder and "virtual environment" AudunNilsen 1 1,577 Mar-21-2024, 04:41 AM
Last Post: deanhystad
  my venv is not loading njoki 1 3,562 Mar-20-2024, 10:41 AM
Last Post: snippsat

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020
This forum uses Lukasz Tkacz MyBB addons.
Forum use Krzysztof "Supryk" Supryczynski addons.