Skip to main content

Questions tagged [virtualenv]

virtualenv is a tool that creates sandboxed Python environments.

0 votes
0 answers
28 views

Docker build succeeds on one system but not on other

System info I've been Dockerizing an application on System A, which is a Debian 12 clean installation, AMD64 architecture. The system info: Linux debian12.localdomain 6.1.0-17-amd64 #1 SMP ...
3 votes
1 answer
6k views

I started virtualenv on Mac OS, then unable to deactivate it completely

I started virtualenv on my Mac OS, using the commands python -m virtualenv envsp source env/bin/activate Then it was successfully activated. Then I entered exit, and I got a response which says ...
0 votes
3 answers
11k views

Windows CMD cannot use Python Virtualenv or Django commands

I'm trying to use python Virtualenv and Django. I have successfully installed both using Pip. On every tutorial I've found, it tells me to open CMD and type in a command. For example: C:\Users\USER\...
0 votes
1 answer
6k views

python virtualenv ERROR: unknown command "config"

# virtualenv tmp/.venv New python executable in /root/tmp/.venv/bin/python Complete output from command /root/tmp/.venv/bin/python -m pip config list: ERROR: unknown command "config" -----------------...
0 votes
0 answers
42 views

virtualenv and pip version inside

I installed fresh Ubuntu 20.04 (which I believe comes with python3.8) and then additionally installed: sudo apt install python3.9 sudo apt install python3.9-dev sudo apt install python3-pip I want to ...
15 votes
5 answers
82k views

What is the alternative for source command in cmd?

I want to run the Windows (Command Prompt) equivalent of source myvenv/bin/activate so as to activate and enter into my virtual environment.
67 votes
7 answers
98k views

Can't install virtual interpreter in PyCharm in Linux

When I try to add virtualenv as an interpreter in PyCharm Community 2018.1.2 in Kubuntu 18.04 I get the following error: ModuleNotFoundError: No module named 'distutils.core' How can I solve this?
9 votes
2 answers
3k views

What do double curly braces mean in systemd scripts?

A stackoverflow answer about running python scripts upon system startup uses {{ and }} in its syntax. What do they mean? ExecStart={{ venv_home }}/bin/fooservice --serve-in-foreground I am also not ...
0 votes
0 answers
96 views

Philosophy of virtualenv

Can somebody explain the philosophy of virtualenv? I fully understand how it works - if I use scripts by hand. I've to enter to some folder, run virtualenv and do what I want in secure environment. ...
28 votes
7 answers
116k views

`python3.7: bad interpreter: No such file or directory`

I installed Python, pip3, and virtualenv as in this guide for TensorFlow: brew install python pip3 install -U virtualenv Then I was able to create a virtual environment with: virtualenv --system-...
1 vote
0 answers
129 views

Unable to set python environments with old interpreters

I have installed virtualenvwrapper on Arch Linux, as well as the AUR repository python38 so I can set an environment and work with TensorFlow. I have set up .bashrc as usually recommended on the docs ...
3 votes
2 answers
17k views

Permission Denied When Trying to Create Python3 Virtual Environment

Ubuntu 18.04 LTS I'm trying to allow users to create their own virutalenv for python3, however when trying to create said environment using a standard user account with this command:$ python3 -m venv ...
0 votes
1 answer
457 views

User and virtual environment in ubuntu linux

Hi I'm new to linux and currently I'm using ubuntu as my linux distribution. Right now I'm confused about user in ubuntu and search online about it. I found article about it in digital ocean that says ...
0 votes
1 answer
375 views

I have lost the venv part of my agnoster prompt on Apple Mac

macOS 10.12.6 Sierra Hello, I have just installed Zsh and Oh-my-zsh. I then selected the Agnoster theme and was very happy with it. Now, after some tweaking I seem to have lost the venv part of my ...
1 vote
1 answer
1k views

How to create python virtualenv through userdata in an Amazon EC2 (Amazon Linux 2) instance?

How to create python virtual environment in ec2-instances? I am try to create virtual environment in ec2-instances while i am creating ec2-instances so need to imporve the code on user-data. User-data ...

15 30 50 per page