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
-1
votes
2 answers

Why I can't install python virtual environment?

I try to install virtual environment using : python -m venv .venv But it says it can't find a module called venv.
Merry
  • 3
  • 1
-1
votes
1 answer

how go through and see the library source code

hello friends i code django and python in pycharm for a company .i have 2 project in one of them i can see the source code of django and django rest framework with "command + mose over" and in another one it doesnt work with django and other…
fahime
  • 5
  • 4
-1
votes
1 answer

Linux Mint 20.2 and Virtualenv: activation command ignore me

So i have this problem and nowhere i can found something like this: Linux Mint 20.2, Vs Code (but i try also from terminal and is the same). I had created a virtual environment with classic python3 -m venv env. Then i try to activate venv with…
-1
votes
1 answer

VSC Virtual Environment pip list question

I am using the VSC Editor, Python 3.9.4 and Windows 10. I have installed a virtual environment in my news folder by performing the following steps: navigated to the news folder. entered: $ python -m venv .venv entered: $…
katcode
  • 1
  • 2
-1
votes
1 answer

Can't figure how to solve this when creating a virtual environment for Django

How can I figure this out when working with Django :can't open file '/home/student/back_ends/venv': [Errno 2] No such file or directory
-1
votes
1 answer

virtualenv raises importerror because of changing app name in django

I've used [this link] to rename my django app. So I've edited some files and table's name and so on. But as it has been mentioned in that link, There is problem with virtualenv. So how can I fix it? I've change name "notes" to "blog". The apps.py…
niloofar
  • 2,244
  • 5
  • 23
  • 44
-1
votes
1 answer

can't running flask authentification

I try to implement an authentification app with python, SQLAlchemy and Flask. I found https://www.digitalocean.com/community/tutorials/how-to-add-authentication-to-your-app-with-flask-login-fr. But after I defined set FLASK_APP=project and set…
-1
votes
1 answer

Import could not be resolved when trying to create mezzanine project in a venv with vs code

I tried to setup my first mezzanine project in a venv. pip install mezzanine gives me the warning django-contrib-comments 2.1.0 has requirement Django>=2.2, but you'll have django 1.11.29 which is incompatible.. Why does it want to use…
ariodante
  • 1
  • 4
-1
votes
2 answers

What should my path if I am using python venv?

I use python 3.6.9 and asterisk 16.16.0 in Ubuntu 18.04. If you know about AGI then you probably know about this line #!/usr/bin/python or this #!/usr/bin/env python if not then don't worry its tells the system to run this script in the Python…
LP83
  • 1
  • 1
-1
votes
1 answer

Questions Virtualenv

just wanted to set up my new MacBookPro M1. As I want to organize my MB this time, i want to start using virtualenv. So, what I've done so far: installed brew installed virtualenv set up a dir, in there create my first env called sec_env installed…
-1
votes
2 answers

creating python virtual env on Linux

I'm new to Linux environment where i need to create a virtual environment for my project. As this is a development machine i will not have access like i used to have in my own machine. I tried running the below commands : python3 -m venv env…
-1
votes
2 answers

How to install pybluez in a Python virtual environment?

I'm wondering how to install pybluez library in a Python virtual environment (Linux Ubuntu / Pop! OS). The problem is simple: there's no bluetooth.h header in the virtual environment, so it fails during installation. In real environment there's a…
Hammeronthenet
  • 132
  • 2
  • 14
-1
votes
1 answer

Spacy not showing accurate vocab results

I am trying to get similar words to an origin word using spacy. I've imported the en_core_web_md and en_core_web_lg models and I am using the word vectors to find words that are similar. When I run this outside of my virtual environment, there is no…
-1
votes
2 answers

Cant pip-install mysql into venv on Mac OS Catalina for Django framework

Dears, I can not install mysql or mysqlclient into my venv. Everytime I try, I am getting this errors: However, I managed to brew-install it locally by using these steps: https://ruddra.com/posts/install-mysqlclient-macos/ It worked locally, but…
-1
votes
1 answer

How to run virtual environment in python

Following docs on creating virtual environment, I created a virtual environment using, python3 -m venv ./venv traversing the ./venv directory lists the virtual environment related files. bin include lib pyvenv.cfg Now, how do I run my virtual…
laxman
  • 1,781
  • 4
  • 14
  • 32