Questions tagged [virtual-environment]

544 questions
2
votes
6 answers

Django Python - No connection could be made because the target machine actively refused it

I have a Django python server in a virtual environment at the root of my hard drive. In the command line, when I activate the env and run python manage.py 192.168.0.47:80 it starts the server normal (no migration notice or anything), but when I load…
2
votes
2 answers

virtualenvwrapper: when does `workon` changes to the project directory?

I use virtualenvwrapper to manage my environments. I create my projects with the -a argument and PROJECT_HOME is not set, because my projects don't share a common path. VIRTUALENVWRAPPER_WORKON_CD is set to 1 though and a valid…
Brutus
  • 7,139
  • 7
  • 36
  • 41
2
votes
1 answer

How to copy python virtual env accessing global packages to a different machine

I have set up a python virtual env using $ virtualenv --system-site-packages env It works fine on the machine where I have set up the virtual env and I can access all the global packages in my script. I then copied this virtual env to a different…
1
vote
0 answers

Where should a virtual environment folder be placed relative to the main project directory?

I understand that the idea behind a virtual environment is to give your project's dependencies a local installation as opposed to a global one. I followed the steps to successfuly create and activate a virtual environment for node using nodeenv.…
1
vote
0 answers

I haven't been using virtual environments and i'm now learning about them. Should I delete python and reinstall it?

Did I muddle up my system by installing packages in general without being in a specific virtual environment and need to start over? Im not for sure if that is even the correct solution to delete it. I just want to make sure I don't have any…
JPF
  • 19
  • 1
1
vote
1 answer

How to conda init in a shell which is executed by Popen?

So I am trying to use Popen in Qt to execute a shell in which I would like to activate a conda virtual environment called”alphapose” and then execute inference.py: QString srtttt = "conda activate alphapose;cd;cd AlphaPose-pytorch-1.11 ;python…
Alan810
  • 13
  • 2
1
vote
0 answers

Jupyter is not starting with my environemnt

So for the first problem in my life I have this problem. I activate my venv through: source venv/bin/activate I then install jupyter with pip install jupyter Now when in a notebook and I do sys.executable I get ./bin/python3 But this is not my…
Light
  • 31
  • 3
1
vote
0 answers

Minishift start error Checking for setuid bit ... FAIL on macOS Ventura version 13.1

I want to start minishift on my macOS Ventura Version 13.1 I set up virtual environment following this link However, when I try minishift start command following lines are printed: -- Starting profile 'minishift' -- Check if deprecated options are…
Harun Acar
  • 109
  • 1
  • 13
1
vote
0 answers

How to go from colab to local notebook with same environment

I have created a notebook in google colab where I am training a neural network. In colab all imports and installations are problem free. However, when I create a local copy of the jupyter-notebook, there are a lot of issues with missing packages and…
1
vote
2 answers

Anaconda Prompt is having an issue with SSL certificates

I wanted to create a virtual environment in conda prompt: conda create --name name_of_venv I am getting error: Collecting package metadata (current_repodata.json): done Solving environment: done CondaSSLError: Encountered an SSL error. Most likely…
1
vote
0 answers

pip3 using a different Python version than pyenv has activated

I've installed pyenv to activate Python 3.9, and that appears to have worked: maxghenis@MacBook-Air-3 policyengine-canada % pyenv versions system * 3.9.16 (set by /Users/maxghenis/.pyenv/version) maxghenis@MacBook-Air-3 policyengine-canada…
Max Ghenis
  • 14,783
  • 16
  • 84
  • 132
1
vote
2 answers

How do I tell conda/mamba to use windows/linux/osx channels that are different from the system OS?

I would like to help someone solve their problem with installing a particular mamba environment: New mamba environment force torch CPU and I don't know why However, they use Windows, and I am on macOS. How can I tell mamba to use pytorch/win-64 and…
Cornelius Roemer
  • 3,772
  • 1
  • 24
  • 55
1
vote
1 answer

How to get more detailed information when mamba encounters problem while solving environment?

When installing trying to install snakemake together with Python v3.11 in a mamba (conda) environment, mamba gives me the following error: $ mamba create -n py311-snakemake python=3.11 snakemake Encountered problems while solving: - package…
Cornelius Roemer
  • 3,772
  • 1
  • 24
  • 55
1
vote
1 answer

Why am I unable to import the pcse (python crop simulation environment) into my jupyter notebook and how do I fix it?

I installed pcse using this user guide: https://pcse.readthedocs.io/en/stable/user_guide.html#getting-started . I am unable to import the package in jupyter notebook while I have the environment activated in the miniconda terminal. (base)…
1
vote
0 answers

Issue with activating virtual environment through batch file

I am trying to activate a virtual environment using a batch file in Windows, but it isn't working. This is the script that I'm using: @ECHO OFF ECHO Activating the virtual environment ECHO =================================== ECHO current directory:…
C. Elias
  • 11
  • 2