Anaconda

提高anconda下载速度

喜夏-厌秋 提交于 2020-04-17 17:24:12
anaconda 安装镜像源 在使用安装 conda 安装某些包会出现慢或安装失败问题,最有效方法是修改镜 像源为国内镜像源。 之前都选用清华镜像源,但是2019年后已停止服务。推荐选用中科大镜像源。 先查看已经安装过的镜像源,cmd窗口执行命令: conda config --show 查看配置项 channels ,如果显示带有 tsinghua ,则说明已安装过清华镜像。 channels: https://mirrors.tuna.tsinghua.edu.cn/tensorflow/linux/cpu/ https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/msys2/ https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/conda-forge/ https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free/ https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/pytorch/       下一步,使用 conda config --remove channels url地址删除清华镜像,如下命令删除第一个。然后,依次删除所有镜像源 conda config -

Error while launching Jupyter Notebook - @attr.s(hash=True) AttributeError: module 'attr' has no attribute 's'

ぐ巨炮叔叔 提交于 2020-04-16 05:48:50
问题 I am not able to launch or open Jupyter Notebook. I have uninstalled and installed it multiple times, still get the same error which I have pasted below! It's giving some 'Attribute Error'. Traceback (most recent call last): File "C:\Users\Ramya\anaconda3\Scripts\jupyter-notebook-script.py", line 6, in from notebook.notebookapp import main File "C:\Users\Ramya\anaconda3\lib\site-packages\notebook\notebookapp.py", line 80, in from .services.contents.manager import ContentsManager File "C:

cx_freeze exe file works in anaconda prompt but not in windows cmd command prompt?

喜欢而已 提交于 2020-04-16 05:03:22
问题 I have spent most of the day trying to compile an exe file from my python script and running it through the vanilla cmd command prompt. I finally managed to create the exe-file, but weirdly it only runs in the anaconda prompt and not in the cmd. Here is the full error message/traceback: Traceback (most recent call last): File "C:\ProgramData\Anaconda3\lib\site-packages\cx_Freeze\initscripts\__startup__.py", line 14, in run module.run() File "C:\ProgramData\Anaconda3\lib\site-packages\cx

cx_freeze exe file works in anaconda prompt but not in windows cmd command prompt?

六月ゝ 毕业季﹏ 提交于 2020-04-16 05:03:13
问题 I have spent most of the day trying to compile an exe file from my python script and running it through the vanilla cmd command prompt. I finally managed to create the exe-file, but weirdly it only runs in the anaconda prompt and not in the cmd. Here is the full error message/traceback: Traceback (most recent call last): File "C:\ProgramData\Anaconda3\lib\site-packages\cx_Freeze\initscripts\__startup__.py", line 14, in run module.run() File "C:\ProgramData\Anaconda3\lib\site-packages\cx

How to configure Sublime Text 3 for Anaconda?

风流意气都作罢 提交于 2020-04-16 04:49:32
问题 I download and install Anaconda2 from Anaconda Home. I registered Anaconda as my default Python2, but didn't add to my PATH. After this, I start Anaconda Prompt and everything is OK. Now I want to use Anaconda with Sublime Text 3. After doing some search, I install the Anaconda plugin by Package Control. After that, I change Anaconda's Default Setting like ... "python_interpreter": "E:\\Programs\\Anaconda2\\python.exe", ... and User Setting like { "python_interpreter": "E:\\Programs\

Reasoning to use (or not use) conda in conjunction with atom

为君一笑 提交于 2020-04-16 03:29:05
问题 I am new to using python and am still fuzzy in terms of how python 'works' in conjunction with different things you can use to use python. Specifically: I've been working with Anaconda and Python 3 and doing things in Jupyter, but a friend introduced me to Atom which I find much more appealing and would like to start using. I don't think I will use Hydrogen, I just want to use Atom as an editor and then execute the .py files via terminal in Atom. (I have a Mac, if this makes any difference).

Cannot install mpi4py using conda AND specify pre-installed mpicc path

折月煮酒 提交于 2020-04-16 03:28:08
问题 I have tried installing mpi4py with: env MPICC=path/to/openmpi/bin/mpicc conda install -c anaconda mpi4py But I get this message: The following NEW packages will be INSTALLED: mpi anaconda/linux-64::mpi-1.0-mpich mpi4py anaconda/linux-64::mpi4py-3.0.3-py37h028fd6f_0 mpich anaconda/linux-64::mpich-3.3.2-hc856adb_0 Which seems to show that "MPICC=path/to/openmpi/bin/mpicc" was ignored. Indeed, after installing mpi4py with mpich, and trying to run the following simple code with mpirun -n 2

Spyder 4 - deactivate automatic highlighting of last word after few seconds

风流意气都作罢 提交于 2020-04-16 02:43:12
问题 When I stop typing in Spyder 4, all occurrences of the last word are automatically highlighted after about two seconds. Is it a bug or can I disable it? I use Spyder on Ubuntu 18.04. 回答1: I found the setting: Tools > Preferences > Editor > Display > Highlight occurrences after 来源: https://stackoverflow.com/questions/60747047/spyder-4-deactivate-automatic-highlighting-of-last-word-after-few-seconds

Spyder 4 - deactivate automatic highlighting of last word after few seconds

谁说胖子不能爱 提交于 2020-04-16 02:43:04
问题 When I stop typing in Spyder 4, all occurrences of the last word are automatically highlighted after about two seconds. Is it a bug or can I disable it? I use Spyder on Ubuntu 18.04. 回答1: I found the setting: Tools > Preferences > Editor > Display > Highlight occurrences after 来源: https://stackoverflow.com/questions/60747047/spyder-4-deactivate-automatic-highlighting-of-last-word-after-few-seconds

linux安装python2.7和3.5,同时安装pip

有些话、适合烂在心里 提交于 2020-04-13 11:59:15
【今日推荐】:为什么一到面试就懵逼!>>> linux安装python2.7和3.5,同时安装pip。(virtualenv和anaconda介绍) 用的 是centos系统,自带python2.6,没有pip 1、安装编译工具: #yum install gcc gcc-c++ autoconf automake #yum install openssl openssl-deve 2、安装py2.7: #wget https://www.python.org/ftp/python/2.7.11/Python-2.7.11.tgz #tar -xvzf Python-2.7.11.tgz #cd Python-2.7.11 #./configure --prefix=/usr/local/python2.7 #make #make install 3、修改python链接指向 #mv /usr/bin/python /usr/bin/python2.6 #ln -s /usr/local/python2.7/bin/python /usr/bin/python2 //(也可以定义成/usr/bin/python,不存在,会自动创建,存在则需要先删除,rm /usr/bin/python2) 4、修改yum:因为yum是属于原来python2.6的,修改了/usr/bin