Anaconda

Jupyter Notebook error [duplicate]

天涯浪子 提交于 2020-08-24 05:33:09
问题 This question already has answers here : Error when executing `jupyter notebook` (No such file or directory) (12 answers) Closed last year . I am not able to run the notebook in my browser. It does not appear. The console is giving me the following error. I have Anaconda installed. Any help would be highly appreciated. Thanks C:\Users\Myamoto\AppData\Roaming\Python\Python35\site-packages\Cython\Distutils\old_build_ext.py:30: UserWarning: Cython.Distutils.old_build_ext does not properly handle

The system cannot find the path specified in anaconda command prompt

余生长醉 提交于 2020-08-22 12:04:33
问题 Whenever I open the Anaconda Prompt, I get the message above printed twice (see screenshot of my prompt. How can I remove this? 回答1: try executing conda init and restart the anaconda prompt. It should initialize the conda environment again. 回答2: Go to Control Panel\System and Security\System\Advanced System Settings then look for Environment Variables. Your user variables should contain Path=Path\to\Anaconda3\Scripts . You need to figure where your Anaconda3 folder is (i.e. the path to this

Anaconda Python - how to reinstall NumPy

谁说我不能喝 提交于 2020-08-22 07:24:05
问题 I am using Anaconda 5.3.0's Python interpreter in Visual Studio Code. When I try to import sklearn I get an error: Traceback (most recent call last): File "c:\Users\azzam\machinelearning.py", line 1, in <module> import sklearn File "C:\Anaconda3\lib\site-packages\sklearn\__init__.py", line 134, in <module> from .base import clone File "C:\Anaconda3\lib\site-packages\sklearn\base.py", line 10, in <module> import numpy as np File "C:\Anaconda3\lib\site-packages\numpy\__init__.py", line 142, in

Anaconda Python - how to reinstall NumPy

北城余情 提交于 2020-08-22 07:23:00
问题 I am using Anaconda 5.3.0's Python interpreter in Visual Studio Code. When I try to import sklearn I get an error: Traceback (most recent call last): File "c:\Users\azzam\machinelearning.py", line 1, in <module> import sklearn File "C:\Anaconda3\lib\site-packages\sklearn\__init__.py", line 134, in <module> from .base import clone File "C:\Anaconda3\lib\site-packages\sklearn\base.py", line 10, in <module> import numpy as np File "C:\Anaconda3\lib\site-packages\numpy\__init__.py", line 142, in

python设置搜索路径,以及外层文件调用时路径变动问题

流过昼夜 提交于 2020-08-19 16:37:48
通过sys.path设置路径 import sys sys.path.append("待加入的搜索路径") 修改python环境变量 编辑 ~/.profile 文件: export PYTHONPATH= $PYTHONPATH:搜索路径 临时修改方法: 直接在命令行中输入: export PYTHONPATH=$PYTHONPATH:搜索路径 添加.pth 文件 用“which python”找到并进入python的路径: cd /..../python3.7/site-packages/ 如果使用的是anaconda,路径为: cd /.../anaconda3/lib/python3.7/site-packages$ 在该目录下新建一个以.pth为后缀的文件,文件名任意,文件中每一行是一个路径 在pycharm中设置搜索路径(只在pycharm中有效) 有两种方法: 1).右击要加入的路径文件夹,选择“Mark Directory as ”,再选择“source root” 2).在edit configurations 中点击“environment variables”,输入: name: PYTHONPYTH Values: “待加入的路径” 要注意,最外层调用文件的相对路径是否会变动,若是变动,则存在找不到模块包的可能 建议使用 path = os.path

Linux 环境部署|Anaconda及Tensorflow

不羁的心 提交于 2020-08-19 13:50:48
Linux 环境部署|Anaconda及Tensorflow Linux系统python虚拟环境及HanLP部署( https://duanzhihua.blog.csdn.net/article/details/105046407 ) Anaconda部署 Tensorflow部署 Anaconda官网链接( https://www.anaconda.com/products/individual )Linux下载地址 https://repo.anaconda.com/archive/Anaconda3-2020.02-Linux-x86_64.sh 将文件Anaconda3-2020.02-Linux-x86_64.sh下载到本地,然后上传到Linux服务器。 或者直接从Linux服务器下载。 [centos@host33 anaconda]$ sudo wget https://repo.anaconda.com/ 来源: oschina 链接: https://my.oschina.net/u/4283640/blog/4285893

Pip install in Spyder

a 夏天 提交于 2020-08-19 07:05:57
问题 I'm using Python 3.6 through Spyder in Anaconda3. I have both the Anaconda installation and a "clean" python installation. Before I installed the "clean" python, when I ran the Python -V command in cmd I got the following version description Python 3.6.5 :: Anaconda, Inc. Now when I run the command it just says Python 3.6.5. and the pip list is a whole lot shorter. When ever I open Spyder and find some package that I don't have... how would I go about installing said package? If I just open

Window&Linux多CUDA环境安装不用愁啦

核能气质少年 提交于 2020-08-18 04:38:36
Windows 安装 conda安装 tf2.0 因为tf2需要cuda10,本人一直在用cuda9.2的1.x版本tensorflow。 此方法能有效避免系统python版本和pip包覆盖问题,还能成功安装多个版本的cuda 安装工具:Miniconda、PC 1.下载conda(miniconda更简洁,节省内存) 多个版本下载地址,自取~ Windows 下载地址 https://mirrors.tuna.tsinghua.edu.cn/anaconda/miniconda/Miniconda3-4.7.10-Windows-x86_64.exe Linux 下载地址 https://mirrors.tuna.tsinghua.edu.cn/anaconda/miniconda/Miniconda3-4.7.12-Linux-x86_64.sh Mac 下载地址 https://mirrors.tuna.tsinghua.edu.cn/anaconda/miniconda/Miniconda3-4.7.10-MacOSX-x86_64.pkg 2.安装Miniconda 主要要注意这个地方,其他地方默认设置就好:如果是自带有python,请不要勾选,避免出现python版本覆盖问题;第一个选项可以不选,但后期要自己再设置 这里路径我选的是 D:\Miniconda3 3

【Anaconda3】更新conda的方法

空扰寡人 提交于 2020-08-17 20:03:50
遇到一个报错:failed with initial frozen solve. Retrying with flexible solve. 根据网上教程,先更新conda。 在Anaconda prompt 输入conda update,提示: conda update --prefix C:\Anaconda3 anaconda 按这条命令,更新conda环境。会更新非常多的包。更新完成后输入: conda update --all 来源: oschina 链接: https://my.oschina.net/u/4397718/blog/4429241

Working with Anaconda in Visual Studio Code

喜欢而已 提交于 2020-08-17 15:57:11
问题 I am getting a bit confused here, the latest Anaconda Distribution, 2018.12 at time of writing comes with an option to install Microsoft Visual Studio Code, which is great. When launching VSC and after Python: Select Interpreter and with a fresh install of Anaconda, I can see ~Anaconda3\python.exe which I assume is the Anaconda Python Environment, however, when I try to run some commands, I am getting: PS ~\Documents\Python Scripts\vs> ~/Anaconda3/Scripts/activate PS ~\Documents\Python