Questions tagged [python-venv]

Many questions here will have to do with how to setup virtual development environments for Python using the venv command (new as of Python 3.3), the differences between venv and other common packages, such as virtualenv, and the interaction between these virtual environments and other parts of your development system.

Python venv — Creation of virtual environments

The venv module provides support for creating lightweight “virtual environments” with their own site directories, optionally isolated from system site directories. Each virtual environment has its own Python binary (allowing creation of environments with various Python versions) and can have its own independent set of installed Python packages in its site directories.

Many questions here will have to do with how to setup virtual development environments for Python using the venv command (new as of Python 3.3), the differences between venv and other common packages, such as virtualenv, and the interaction between these virtual environments and other parts of your development system.

1349 questions
-2
votes
1 answer

How can I create a virtual environment with specific Python version in Windows?

I have Python 3.10 in my machine. But I want to use 3.8 for a project. How can I create a virtual environment with Python 3.8 ?
isinsu
  • 53
  • 1
  • 7
-2
votes
1 answer

What do the 2 venvs mean in the console

Why are there 2 venvs in parenthesis? I couldn't find anything on google about what having 2 venvs means.
carrizal
  • 714
  • 7
  • 10
-2
votes
1 answer

cant use flask library in virtual environment

im trying to run a simple webserver with python and flask i created a python project and a virtual environment, installed flask, but when im trying to run the script it says " no module named flask" here is my script : #! /usr/bin/python3 from…
MopyKing
  • 31
  • 1
  • 1
  • 4
-2
votes
2 answers

I can't install mysqlclient using `pip install mysqlclient` command

Here is the console log after ran pip install mysqlclient command. `(venv) Yu:sagemaker-modeltraining lee$ pip install mysqlclient Collecting mysqlclient Using cached mysqlclient-2.0.3.tar.gz (88 kB) ERROR: Command errored out with exit status…
KangDo
  • 79
  • 9
-2
votes
1 answer

How to create a virtual environment in Ubuntu 20.04 of python 2.7?

I was able to make the virtual environment of python3 but not able to make of python2. which python2 /usr/bin/python2 python2 -V Python 2.7.18
-2
votes
1 answer

Does Anaconda check bashrc file for CC??? path?

I think I have seen others who have had this same issue, but perhaps it is due to where the Anaconda image is being run on the system ( i.e where the venv is that pip has installed) Just a note that my processor- arch is x86, and with some older…
Pete
  • 1
  • 3
-2
votes
1 answer

Is there any advantage to working within virtualenvs on single purpose EC2 instance?

It seems redundant to me since I created the EC2 solely for the purpose of working on this specific project. Why do I need to create another virtual environment on top of that?
Ashish
  • 178
  • 1
  • 11
-2
votes
1 answer

Heroku won't load my venv, and won't let me open my app

which is simply "It worked" server screen. I'm tryin gto do the GettingStartedWithDjango tutorial. Yes, I am an idiot. (blog-venv)vagrant@precise32:/vagrant/projects/micrblog$ git push heroku master Warning: Permanently added the RSA host key for…
Silverjman
  • 11
  • 5
-3
votes
1 answer

Python not found

I'm working on a project in a python virtual environment, the project was started on a pc with python 3.8 installed and consequently python 3.8 was used in the virtual environment, or I had the need to continue the project on another pc, so I loaded…
CorAnna
  • 99
  • 7
-3
votes
2 answers

Do I need a clean install of Python to start working with virtual environments?

I've been using Python on my system for about a year as a new programmer. Until recently, the topic of virtual environments hasn't come up until got to the end point of the Django course on codecademy. I'm now expected to make a Django project on my…
Evelyn
  • 99
  • 2
  • 10
-3
votes
1 answer

Setting up Virtual Environment for Django in python

enter image description here please help python3 -m venv venv
1 2 3
89
90