Anaconda

Ubuntu Server 18.04 搭建深度学习平台

心已入冬 提交于 2019-12-29 19:46:57
【推荐】2019 Java 开发者跳槽指南.pdf(吐血整理) >>> 1、设置python版本 sudo update-alternatives --install /usr/bin/python python /usr/bin/python3 150 2、安装Anaconda虚拟环境管理 wget https://repo.anaconda.com/archive/Anaconda3-5.3.0-Linux-x86_64.sh # bash Anaconda3-5.2.0-Linux-x86_64.sh 记得把环境变量添加在系统中,最后是否安装VScode建议不安装 3、安装CUDA和cuDNN,在版本选择上因为GPU原因选择CUDA10.0和相应的cuDNN 选择对应系统的版本,在线安装:https://developer.nvidia.com/cuda-10.0-download-archive?target_os=Linux&target_arch=x86_64&target_distro=Ubuntu&target_version=1804&target_type=debnetwork https://developer.nvidia.com/rdp/cudnn-download需要注册登录账号,下载后解压 sudo cp cuda/include/cudnn.h

How to remove (base) from terminal prompt after updating conda

安稳与你 提交于 2019-12-29 17:45:10
问题 After updating miniconda3, whenever I open a terminal it shows "(base)" in front of my username and host. In this answer post https://askubuntu.com/a/1113206/315699 it was suggested to use conda config --set changeps1 False To remove it. But that would remove the indication for any conda environment. I would like to remove it only for the base one, so that I can maintain it always active and have access to its python and installed packages without having to always see this (base) taking up

Mac下Anaconda Navigator打不开的解决办法

我的梦境 提交于 2019-12-29 11:51:11
今天早上想学习,却发现打不开Anaconda,遂百度解决办法。 尝试过两种解决办法,都是百度到的。第一种虽然没效果,但是应该也是一种解决办法,只不过不是解决我当前的问题的,也mark一下,万一以后遇到了呢。 第一种 点击 Anaconda-navigator 的图标后,图表会出现几秒(initializing),然后就退出,或者根本就是无响应,是因为权限不足: 解决办法: 删除你个人目录下的 .continuum 文件夹就行了(这是一个隐藏的文件夹,空的) step1. 打开终端 step2. 输入 sudo rm -rf .continuum step3. 输入电脑的密码 ———————————————— 版权声明:本文为CSDN博主「从容且共」的原创文章,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接及本声明。 原文链接:https://blog.csdn.net/weixin_41112983/article/details/90452476 第二种 1.环境 mac10.13.1系统,python3.6,使用的是Anaconda Navigator for mac 2.产生的原因 1.在需要用的时候发现anaconda nvigator启动不了,然后重新启动mac,还是一样启动不了。 3.为何产生该问题 是navigator版本的原因,不能暴力升级

Launching Python script from Windows command line: script starts, then fails

空扰寡人 提交于 2019-12-29 09:20:09
问题 I'm a rank novice, please bear with me. I've inherited a python script from another engineer. For convenience, I want to be able to launch the script from a Windows bat file, but initially am trying to debug by running from Windows command line. Whenever I start the script from CMD, it seems to start OK and then immediately fails with errors. My environment: Windows7 Pro and Windows10 Pro (same errors occur), Anaconda 3.7 , Spyder 3.3.2 When I run the script from inside Spyder, script runs

Error when installing keras in anaconda. /p KERAS_BACKEND= 0<temp.txt

为君一笑 提交于 2019-12-29 08:53:09
问题 I was creating a new env in anaconda and after installing spyder, tensorflow and theano I attempted to install keras but I got an error message (see below). Now I cannot even open spyder as it stops working. Spyder only works if I uninstall keras again. Do you have any idea what could be going on? I have another env in this same computer that works perfectly with the same packages installed. (py36) C:\Users\LeicaMicroscope>conda install -c conda-forge keras Solving environment: done ##

Compiling n submatrices into an NxN matrix in numpy

眉间皱痕 提交于 2019-12-29 08:22:44
问题 Working on a problem in matrix structural analysis. I am writing a program in Python (using Anaconda 3) to analyze a truss. Each individual truss member generates one 4x4 matrix, for a total of n 4x4 matrices. Then, these 4x4 matrices are compiled into an NxN matrix, arranged like so, for matrices A, B, C: As you can see, each successive submatrix is placed one row over and one row down from the preceding one. Further, because the size of the truss and the number of truss joints (nodes) is

After updating conda I get a CommandNotFoundError for conda

我是研究僧i 提交于 2019-12-29 07:00:30
问题 After updating conda I can no longer run commands such as conda list , I now see the following error when I try a conda command: CommandNotFoundError: No command 'conda conda' The conda update was performed like so: $ conda update -n base -c defaults conda Collecting package metadata: ...working... done Solving environment: ...working... done ## Package Plan ## environment location: C:\home\miniconda added / updated specs: - conda The following packages will be downloaded: package | build ---

How to make Anaconda work behind HTTP proxy (not https)?

会有一股神秘感。 提交于 2019-12-29 05:46:05
问题 I'm having trouble working with Anaconda behind a proxy at work. When I have have the following environment variables: http_proxy: http://domain\username:password@corp.com:8080 https_proxy: https://domain\username:password@corp.com:8080 or just http_proxy: http://server\username:password@corp.com:8080 set up then git works. But Anaconda does not work. I'm trying to run conda update conda and I get: Could not connect to https://repo.continuum.io/pkgs.... Could not connect to https://repo

How can I create the minimum size executable with pyinstaller?

与世无争的帅哥 提交于 2019-12-29 03:16:04
问题 I am on Windows 10, I have anaconda installed but I want to create an executable independently in a new, clean minimal environment using python 3.5. So I did some tests: TEST1: I created a python script test1.py in the folder testenv with only: print('Hello World') Then I created the environment, installed pyinstaller and created the executable D:\testenv> python -m venv venv_test ... D:\testenv\venv_test\Scripts>activate.bat ... (venv_test) D:\testenv>pip install pyinstaller (venv_test) D:

Python: Can't connect to HTTPS URL because the SSL module is not available

北城以北 提交于 2019-12-28 13:59:22
问题 I'm trying to connect to Stripe to setup payments. I have it working on my dev machine, but when I push to prod, I get the following SSL error: Can't connect to HTTPS URL because the SSL module is not available. Here are the details of my setup: Ubuntu 16.04 Apache 2 mod_wsgi Python 3.6 Django 1.11 Python/django processes are all installed and running in an anaconda (miniconda) virtual environment called "protectyourreviews" I've read multiple other SO answers that suggest reinstalling python