Anaconda

Is it possible to use Anaconda packages as dependencies for Google Cloud Functions?

谁说胖子不能爱 提交于 2020-06-27 10:12:14
问题 I am writing a Google Cloud Function using the Python Runtime and I need to include some dependencies which are not available with pip . As described in the docs here, it should be possible to package local dependencies, however, in my case, I would like to use all the packages of a local Anaconda environment and upload them with the function. Is there a way to do so? Or alternatively, is there a way to specify Anaconda packages in the requirements.txt file instead of using pip ? 回答1: No, it

Error Running Jupyter Lab/Notebook and Most Conda Commands Following Update

元气小坏坏 提交于 2020-06-26 13:43:11
问题 After attempting to update conda packages, I am no longer able to start either Jupyter Notebook or Jupyter Lab. Most conda commands also result in an error in terminal. While each command results in a slightly different error, every one terminates in the following statement: ImportError: dlopen(/Users/USERNAME/anaconda3/lib/python3.7/lib-dynload/_ctypes.cpython-37m-darwin.so, 2): Library not loaded: @rpath/libffi.6.dylib Referenced from: /Users/USERNAME/anaconda3/lib/python3.7/lib-dynload/

“Unable to connect to the local runtime” in google colab

自闭症网瘾萝莉.ら 提交于 2020-06-26 11:07:21
问题 I'm trying to connect local run time but it's not connecting, I used the troubleshooting dialog following commands: pip install jupyter_http_over_ws jupyter serverextension enable --py jupyter_http_over_ws jupyter notebook \ --NotebookApp.allow_origin='https://colab.research.google.com --port=8888 \--NotebookApp.port_retries=0 Have tried the same above steps as said in below URL https://research.google.com/colaboratory/local-runtimes.html Facing an issue 'Jupyter authentication cookie was not

ModuleNotFoundError: No module named 'keras' for Jupyter Notebook

落爺英雄遲暮 提交于 2020-06-25 21:39:18
问题 I was running Jupyter Notebook and the following error occurs ModuleNotFoundError Traceback (most recent call last) in ----> from keras.models import Sequential from keras.layers import ( Conv2D, MaxPooling2D, Flatten, Dense, Dropout) ModuleNotFoundError: No module named 'keras' I have tried using import sys; sys.path and found this ['/home/xxx/notebook', '/home/xxx/anaconda3/lib/python37.zip', '/home/xxx/anaconda3/lib/python3.7', '/home/xxx/anaconda3/lib/python3.7/lib-dynload', '', '/home

Python cannot find package h2o in anaconda

怎甘沉沦 提交于 2020-06-25 00:41:47
问题 When I try to import h2o I am told that the package does not exist. When I try to install it, it tells me it already exists. I have tried wiping it out of my computer and reinstalling to no avail. At this point all I can think is some environment variable. (C:\Users\Lanier\Anaconda2) C:\Users\Lanier>python Python 2.7.12 |Anaconda custom (64-bit)| (default, Jun 29 2016, 11:07:13) [MSC v.1500 64 bit (AMD64)] on win32 Type "help", "copyright", "credits" or "license" for more information.

Python cannot find package h2o in anaconda

…衆ロ難τιáo~ 提交于 2020-06-25 00:41:08
问题 When I try to import h2o I am told that the package does not exist. When I try to install it, it tells me it already exists. I have tried wiping it out of my computer and reinstalling to no avail. At this point all I can think is some environment variable. (C:\Users\Lanier\Anaconda2) C:\Users\Lanier>python Python 2.7.12 |Anaconda custom (64-bit)| (default, Jun 29 2016, 11:07:13) [MSC v.1500 64 bit (AMD64)] on win32 Type "help", "copyright", "credits" or "license" for more information.

Anaconda: disable prompt change

喜你入骨 提交于 2020-06-24 08:04:34
问题 When using anaconda (install for python), when I switch to the virtual env with this: source activate my_env It changes my prompt and adds (my_env) at the start of my PS1. I've tried adding export VIRTUAL_ENV_DISABLE_PROMPT=1 to my bashrc, but it did not help. Any idea? 回答1: Run this on the terminal: $ conda config --set changeps1 False http://conda.pydata.org/docs/config.html#change-command-prompt-changeps1 回答2: Add: changeps1: False to your .condarc file. http://conda.pydata.org/docs/config

Anaconda: disable prompt change

瘦欲@ 提交于 2020-06-24 08:03:13
问题 When using anaconda (install for python), when I switch to the virtual env with this: source activate my_env It changes my prompt and adds (my_env) at the start of my PS1. I've tried adding export VIRTUAL_ENV_DISABLE_PROMPT=1 to my bashrc, but it did not help. Any idea? 回答1: Run this on the terminal: $ conda config --set changeps1 False http://conda.pydata.org/docs/config.html#change-command-prompt-changeps1 回答2: Add: changeps1: False to your .condarc file. http://conda.pydata.org/docs/config

RemoveError: 'setuptools' is a dependency of conda and cannot be removed from conda's operating environment

て烟熏妆下的殇ゞ 提交于 2020-06-24 07:41:05
问题 I have Win 10 When running: conda update conda I encountered this error: RemoveError: 'setuptools' is a dependency of conda and cannot be removed from conda's operating environment. Nothing seems to help I tried to uninstall anaconda and got a successful message but it seems there are some traces of older version that still persist How can I completely erase all traces of Anaconda installation? 回答1: While I still did not find how to cleanly uninstall anaconda, I was able to resolve the error

Anaconda 3: Package version mismatch between command line and Navigator GUI (still updatable)

守給你的承諾、 提交于 2020-06-23 15:59:32
问题 I came across a strange situation in setting up my Anaconda3. Several weeks after initial setup I want to update some packages now and as I am friend of command line, I did that via Anaconda prompt opened on my (single) environment via navigator. All cmd statements ran fine and conda list gives the expected version numbers. However, the navigator GUI still flags related packages as "updatable". What is the reason for it? Thanks for fruitful discussions and learnings about anaconda! Particular