conda

How do I use a conda environment with mod_wsgi?

醉酒当歌 提交于 2019-12-20 17:46:20
问题 My first post, and I'm new to both Python and Apache, so please go easy on me. I have a Python web application in a conda environment that serves up content just fine using Flask. Now I need to serve everything with Apache instead of Flask. I can get Apache to run Python with mod_wsgi, but only with virtualenv. I tried installing virtualenv with Anaconda, but I received a warning that such a setup is unsupported and not recommended. So my question is this: How do I set up Apache to run my

How do I use a conda environment with mod_wsgi?

给你一囗甜甜゛ 提交于 2019-12-20 17:46:07
问题 My first post, and I'm new to both Python and Apache, so please go easy on me. I have a Python web application in a conda environment that serves up content just fine using Flask. Now I need to serve everything with Apache instead of Flask. I can get Apache to run Python with mod_wsgi, but only with virtualenv. I tried installing virtualenv with Anaconda, but I received a warning that such a setup is unsupported and not recommended. So my question is this: How do I set up Apache to run my

What does conda do when “solving environment”

旧时模样 提交于 2019-12-20 16:17:55
问题 Whenever I run conda install/remove/update <package> , it tells me it's "Solving environment" for some time before telling me the list of things it's going to download/install/update. Presumably it's looking for dependencies for <package> , but why does it sometimes remove packages after doing this operation? For example, as I was trying to install Mayavi, it decided it needed to remove Anaconda Navigator. Furthermore it does not provide an option to perform only a subset of the suggested

What does conda do when “solving environment”

泪湿孤枕 提交于 2019-12-20 16:17:02
问题 Whenever I run conda install/remove/update <package> , it tells me it's "Solving environment" for some time before telling me the list of things it's going to download/install/update. Presumably it's looking for dependencies for <package> , but why does it sometimes remove packages after doing this operation? For example, as I was trying to install Mayavi, it decided it needed to remove Anaconda Navigator. Furthermore it does not provide an option to perform only a subset of the suggested

INFO menuinst_win32:__init__(182): Menu: name: 'Anaconda${PY_VER} ${PLATFORM}'

♀尐吖头ヾ 提交于 2019-12-20 12:07:03
问题 Currently I get a lot of these INFO messages when I update packages: $ conda update --all --yes Fetching package metadata ................. Solving package specifications: . Package plan for installation in environment C:\anacondadir: The following packages will be UPDATED: ipython: 6.0.0-py35_1 --> 6.1.0-py35_0 nbconvert: 5.1.1-py35_0 --> 5.2.1-py35_0 testpath: 0.3-py35_0 --> 0.3.1-py35_0 testpath-0.3.1 100% |###############################| Time: 0:00:00 1.31 MB/s ipython-6.1.0- 100% |#####

How to identify conda package dependents?

青春壹個敷衍的年華 提交于 2019-12-20 11:42:21
问题 For a given conda package, how to I list the packages that depend on it? I recently installed anaconda on a university cluster that already had a version of MPI (openmpi). The mpich2 package and mpi4py packages installed with anaconda were fine for demos of mpi4py, but the mpi* compilers (mpicc, etc) were not compatable. So I conda remove 'd mpich2 and mpi4py and used pip to install mpi4py using the local MPI install and compilers. I had to dig around to find mpi4py 's dependencies and then

HOW TO: Import TensorFlow in Jupyter Notebook from Conda with GPU support?

本小妞迷上赌 提交于 2019-12-20 10:57:54
问题 I have installed tensorflow using the anaconda environment as mentioned in the tensorflow website and after doing my python installation path changed. dennis@dennis-HP:~$ which python /home/dennis/anaconda2/bin/python And Jupyter was installed. I assumed that if I was able to import and use tensorflow in the conda environment that I will be able to do the same in Jupyter. But that was not the case - Importing tensorflow in my system (without activating the environment) dennis@dennis-HP:~$

How to install cvxopt on on windows 10 on python 3.6

坚强是说给别人听的谎言 提交于 2019-12-20 10:45:05
问题 How do I install cvxopt on windows 10 on python 3.6? When running conda install cvxopt Fetching package metadata ........... Solving package specifications: . UnsatisfiableError: The following specifications were found to be in conflict: - cvxopt -> python 3.5* - python 3.6* Use "conda info <package>" to see the dependencies for each package. I apologize i am on windows... Any ideas? 回答1: After much trial and error, I found that we need to install both the numpy+mkl package and the

Removing Conda environment

∥☆過路亽.° 提交于 2019-12-20 07:59:05
问题 I want to remove a certain environment created with conda. How can I achieve that? Let's say I have an active testenv environment. I tried, by following documentation, with: $ conda env remove CondaEnvironmentError: cannot remove current environment. deactivate and run conda remove again I then deactivate it: $ source deactivate I try running again the command to remove it and I still get the same error. What is going wrong here? 回答1: You probably didn't fully deactivate the Conda environment

Django runserver error, new installation, first time user of Django

爱⌒轻易说出口 提交于 2019-12-20 07:06:32
问题 So I've decided to learn Django, which will be challenging if I cannot get it working. Running Python 3.7.1 (default, Dec 14 2018, 19:28:38) [GCC 7.3.0] :: Anaconda, Inc. on linux (base) runout@runout:~$ python -m django --version 2.2.1 I'm following the tutorial for beginners at djangoproject.com The first line of code was to create a site, which i did... django-admin startproject mysite The second line of code, is where I run into problems. python manage.py runserver My error is as follows: