virtual-environment

Can't update module astropy in an environment

Can't update module astropy in an environment Question: I’m running Anaconda with an environment phd, and I’m trying to update astropy to the current version (5.0.4, same as in my base environment). >>> conda activate phd >>> python Python 3.7.1 (default, Oct 28 2018, 08:39:03) [MSC v.1912 64 bit (AMD64)] :: Anaconda, Inc. on win32 …

Total answers: 1

Error in running a project regarding virtual environment and "DJANGO_SECRET_KEY" in VS code

Error in running a project regarding virtual environment and "DJANGO_SECRET_KEY" in VS code Question: I want to run a project from gitlab on my local machine. I cloned the project, created a virtual environment and activated it. When I want to run without debugging I got this error: File "c:UsersMEDesktoptestz_toolsettings.py", line 28, in <module> SECRET_KEY …

Total answers: 1

Activating venv and conda environment at the same time

Activating venv and conda environment at the same time Question: I am a beginner and was "playing around" with environments a bit. I came across a situation where it seemed that I had two environments activated: I create a directory, create an environment with venv, activate it and then also conda activate a conda environment …

Total answers: 2

jinja2.exceptions.TemplateNotFound error when making a python virtual environment

jinja2.exceptions.TemplateNotFound error when making a python virtual environment Question: so I have made a website using Flask which was working perfectly fine until today when I tried to create a python virtual environment. Does anyone know what could have happened? This is the code for my python file. from flask import Flask, render_template app = …

Total answers: 2

Why are torch.version.cuda and deviceQuery reporting different versions?

Why are torch.version.cuda and deviceQuery reporting different versions? Question: I have a doubt about the CUDA version installed on my system and being effectively used by my software. I have done some research online but could not find a solution to my doubt. The issue which helped me a bit in my understanding and is …

Total answers: 3

The naming rules for your virtual environments in python

The naming rules for your virtual environments in python Question: I’m looking for some sort of naming scheme for my virtual environments. How do you usually name them? Is there naming convention for python virtual environments? Asked By: Michael || Source Answers: If you are storing your environment inside the project folder some common names …

Total answers: 1

Visual Studio Code does not detect Virtual Environments

Visual Studio Code does not detect Virtual Environments Question: Visual Studio Code does not detect virtual environments. I run vscode in the folder where the venv folder is located, when I try to select the kernel in vscode I can see the main environment and one located elsewhere on the disk. Jupyter running in vscode …

Total answers: 16

How to activate virtual environment in Vscode when running scripts are disabled in system?

How to activate virtual environment in Vscode when running scripts are disabled in system? Question: I created a virtual environment in vscode in a folder called server by typing: python -m venv env And I opened the server folder, select interpreter Python 3.8.1 64-bit(‘env’:venv) then I got following error: I can’t find any solution to …

Total answers: 2

How to change Python version of existing conda virtual environment?

How to change Python version of existing conda virtual environment? Question: I created a conda environment with Python version 3.8, but it doesn’t support matplotlib… So I am looking for something like this to change the Python version: conda env my_env update to python=3.6. Is this possible or do I need to recreate the environment? …

Total answers: 3

ModuleNotFoundError: No module named 'requests' using venv in vscode

ModuleNotFoundError: No module named 'requests' using venv in vscode Question: I have 1 file, i get as far as line 1 import requests, nothing more yet and I receive the following error ModuleNotFoundError: No module named ‘requests’. Using Visual Studio Code, installed today with standalone Python x64 3.7.4 Python Extension installed in VSCODE venv created …

Total answers: 7