virtual-environment

No module named PIL in heroku though it is installed

痞子三分冷 提交于 2019-12-02 12:11:05
I have been trying to deploy a Django application on Heroku. Some background - I hadn't used virtual environment while building the application but while deploying it, I had to use it. I'm following this tutorial for deployment. https://medium.com/agatha-codes/9-straightforward-steps-for-deploying-your-django-app-with-heroku-82b952652fb4 Now I'm stuck in step-6. After creating a virtual environment I have freezed the dependencies into requirements.txt . But when I open the deployed URL it says ImportError at / No module named PIL though Pillow has been installed, it is there in requirements

How to activate a virtualenv using a makefile?

≯℡__Kan透↙ 提交于 2019-12-02 00:46:51
问题 At the top of my makefile I have this line: SHELL := /bin/sh which is needed for most of the commands. However, I would like to also have a make command to activate my virtual env, which is on a different path. Here is the code that I wrote for it: activate: source ~/.envs/$(APP)/bin/activate; \ The problem with this is, that this just prints out what is written here, and it doesn't get executed. I read that it might have something todo with only bash knowing about source, but I can't figure

Configuring Python Virtual Environment to use Python 3

拟墨画扇 提交于 2019-12-01 14:48:35
I am learning Django. I installed two different versions of python on my laptop, 2 and 3. I configured my Laptop to use Python 3, so when I check version using the command line, I got this output. Then, I installed the Django and Python Virtual Environment following this link . I could install the Django and Virtual Environment successfully. But my virtual environment is using the python 2. When I check the version in the virtual environment, I got this output. So, how can I configure that virtual environment to use python 3 instead of 2? Or how can I set the Python version to be used when I

How to list all python virtual environments in Linux? [duplicate]

吃可爱长大的小学妹 提交于 2019-11-30 09:00:53
This question already has an answer here: List all virtualenv 5 answers I have more than one Python environment configured in my Debian OS. Is there a way to list all configured environments in Linux? This is different from the possible duplicate as indicated in the comment below. I mean virtual environments created using virtualenv only. If only using the lowly virtualenv ...{directory} to create a virtualenv, then there is just some directory somewhere that has that specific environment in it. You can only "list" these by running find on your $HOME directory (or any other list of directories

How to list all python virtual environments in Linux? [duplicate]

好久不见. 提交于 2019-11-29 11:59:11
问题 This question already has answers here : List all virtualenv (7 answers) Closed 2 years ago . I have more than one Python environment configured in my Debian OS. Is there a way to list all configured environments in Linux? This is different from the possible duplicate as indicated in the comment below. I mean virtual environments created using virtualenv only. 回答1: If only using the lowly virtualenv ...{directory} to create a virtualenv, then there is just some directory somewhere that has

ResolvePackageNotFound: Create env using conda and yml file on MacOS

雨燕双飞 提交于 2019-11-29 11:32:13
问题 I want to create a virtual environment using conda and yml file. Command: conda env create -n ex3 -f env.yml Type ENTER it gives following message: ResolvePackageNotFound: - gst-plugins-base==1.8.0=0 - dbus==1.10.20=0 - opencv3==3.2.0=np111py35_0 - qt==5.6.2=5 - libxcb==1.12=1 - libgcc==5.2.0=0 - gstreamer==1.8.0=0 However, I do have those on my Mac. My MacOS: High Sierra 10.13.3 My env.yml file looks like this: name: ex3 channels: - menpo - defaults dependencies: - cairo=1.14.8=0 - certifi

Installing Anaconda into a Virtual Environment

删除回忆录丶 提交于 2019-11-28 03:41:50
I've currently got a working installation of the Enthought Python Distribution on my machine that I don't want to necessarily disrupt, but I'd like to look at moving over to Anaconda from Continuum. I can easily install Anaconda into the virtualenv directory I create, but I'm not sure how to tell that virtualenv to use the anaconda-version of Python. If I was telling my whole system to use it I can alter .bash_profile with something like export PATH="/DIRECTORIES/anaconda/bin:$PATH . Is there a way to do that within a virtualenv? Charl Botha I just tested the Anaconde 1.6 installer from http:/

jupyter notebook running kernel in different env

不想你离开。 提交于 2019-11-27 16:53:51
I've gotten myself into some kind of horrible virtualenv mess. Help?! I manage environments with conda . Until recently, I only had a python2 jupyter notebook kernel, but I decided to drag myself kicking and screaming into the 21st century and installed a python3 kernel; I forget how I did it. My main (anaconda) python defaults to 2.7. So here I am, merrily trying to use beautiful soup from inside my shiny new python3 kernel, and I don't seem to be able to do anything to get at whatever environment it's finding packages in. Viz (all from notebook): from bs4 import BeautifulSoup -> ImportError:

Installing Anaconda into a Virtual Environment

只愿长相守 提交于 2019-11-27 00:10:08
问题 I've currently got a working installation of the Enthought Python Distribution on my machine that I don't want to necessarily disrupt, but I'd like to look at moving over to Anaconda from Continuum. I can easily install Anaconda into the virtualenv directory I create, but I'm not sure how to tell that virtualenv to use the anaconda-version of Python. If I was telling my whole system to use it I can alter .bash_profile with something like export PATH="/DIRECTORIES/anaconda/bin:$PATH . Is there

jupyter notebook running kernel in different env

余生颓废 提交于 2019-11-26 18:46:55
问题 I've gotten myself into some kind of horrible virtualenv mess. Help?! I manage environments with conda . Until recently, I only had a python2 jupyter notebook kernel, but I decided to drag myself kicking and screaming into the 21st century and installed a python3 kernel; I forget how I did it. My main (anaconda) python defaults to 2.7. So here I am, merrily trying to use beautiful soup from inside my shiny new python3 kernel, and I don't seem to be able to do anything to get at whatever