Anaconda

How to change the default browser used by jupyter notebook in windows

老子叫甜甜 提交于 2020-05-09 17:53:22
问题 I'm on a windows machine without admin right and I would like to run jupyter on chrome, while the default browser is another. I have a local installation of the Anaconda distribution and my first option to start jupyter would be through the Anaconda Navigator, but maybe I have to do something else. Because it is a local installation the command line jupyter notebook produces no results. When I paste the url address in the default browser I have (something like http://localhost:8892/notebooks

mac安装完anaconda后,环境变量设置

社会主义新天地 提交于 2020-05-09 16:32:30
环境:MacOS Sierra 10.12.3;PyCharm Community Edition 2017.1 1. 安装Anaconda:从 https://www.continuum.io/downloads/ 下载 python 2.7 version中的图形界面版本或者命令行版本(根据自己的需要),然后在terminal中执行命令bash Anaconda2-4.3.1-MacOS-x86_64.sh 2. 这个时候在终端里面输入conda 是无法识别这个这个命令的,需要添加环境变量。 在terminal中执行以下命令(需要根据自己anaconda的安装路径作出调整): export PATH=~/anaconda2/bin:$PATH 这时在terminal里面输入conda就可以给出命令信息了,这样可以检验你的conda是不是可以用。 来源: oschina 链接: https://my.oschina.net/u/4350688/blog/4272065

【2020Python修炼记】MySQL之 数据备份、pymysql模块

六月ゝ 毕业季﹏ 提交于 2020-05-09 15:25:07
【目录】 一、IDE工具介绍与安装使用——navicat 神器 二、MySQL数据备份 三、pymysql模块 1、安装 2、使用模块 一、IDE工具介绍与安装使用——navicat 神器 https://www.cnblogs.com/bigorangecc/p/12851845.html 二、MySQL数据备份 https://zhuanlan.zhihu.com/p/115504709 三、pymysql模块 模块安装包下载官网: https://pypi.org/search/?q=pymysql 其他下载地址,参考博客 https://www.cnblogs.com/bigorangecc/p/12852337.html 1、安装 方法一:cmd 中输入指令 pip install pymysql (pip 未规定具体版本) 方法二:直接在 pycharm中安装 (1)傻瓜式 先新建一个python文件,输入代码 import pymysql 此时你会发现,pymysql下面标有红线,光标移至pymysql,查看错误提示,神奇地发现 有“install package pymysql”,点击即可安装 (2)专业式 pycharm 软件中,菜单栏【文件】——【设置】——【项目】——【Project Interpreter】——点击 + 号 搜索需要安装的模块包 方法三

Why is conda init updating my .bash_profile incorrectly?

心已入冬 提交于 2020-05-09 12:01:47
问题 After following these steps and installing conda it seems that conda init updates my .bash_profile incorrectly for some reason. It adds it's content AFTER running .bashrc and thus when bash gets started all my conda stuff does not get initiated correctly for some reason. I ended up having to change the .bash_profile manually to look like this: (automl) brandBrandoParetoopareto~ $ cat .bash_profile # >>> conda initialize >>> # !! Contents within this block are managed by 'conda init' !! _

vscode调试python时提示无法将“conda”项识别为 cmdlet、函数、脚本文件或可运行程序的名称的解决方法

|▌冷眼眸甩不掉的悲伤 提交于 2020-05-08 21:12:26
vscode在调试python文件时提示如下信息: conda : 无法将“conda”项识别为 cmdlet、函数、脚本文件或可运行程序的名称。请检查名称的拼写,如果包括路径,请确保路径正确,然后再试一次。 解决办法: 没有添加系统变量,所以系统根本识别不了conda命令,找不到位置。 添加以下系统变量即可正常运行: 添加对应Anaconda环境变量到用户变量中:(以自己的安装路径为准) 我的是: D:\Anaconda D:\Anaconda\Scripts D:\Anaconda\ Library\bin 示例见下图: 添加好后重启VS即可。 如果重启vscode调试后还是报错并提示下面的信息: PS D:\Python> D:/Anaconda/Scripts/activate PS D:\Python> conda activate base CommandNotFoundError: Your shell has not been properly configured to use 'conda activate'. If your shell is Bash or a Bourne variant, enable conda for the current user with $ echo ". D:\Anaconda/etc/profile.d/conda.sh"

Spyder failed to launch in Anaconda after update (4.1.2)

折月煮酒 提交于 2020-05-08 18:53:09
问题 I have just updated Spyder to 4.1.2 and when I try to launch it, it now produces an error and fails to launch. Output from conda list pylint How can I solve this? Error: Traceback (most recent call last): File "/Users/name/opt/anaconda3/bin/spyder", line 11, in sys.exit(main()) File "/Users/name/opt/anaconda3/lib/python3.7/site-packages/spyder/app/start.py", line 205, in main mainwindow.main() File "/Users/name/opt/anaconda3/lib/python3.7/site-packages/spyder/app/mainwindow.py", line 3734, in

Spyder failed to launch in Anaconda after update (4.1.2)

两盒软妹~` 提交于 2020-05-08 18:51:58
问题 I have just updated Spyder to 4.1.2 and when I try to launch it, it now produces an error and fails to launch. Output from conda list pylint How can I solve this? Error: Traceback (most recent call last): File "/Users/name/opt/anaconda3/bin/spyder", line 11, in sys.exit(main()) File "/Users/name/opt/anaconda3/lib/python3.7/site-packages/spyder/app/start.py", line 205, in main mainwindow.main() File "/Users/name/opt/anaconda3/lib/python3.7/site-packages/spyder/app/mainwindow.py", line 3734, in

Anaconda使用conda activate激活环境报错Your shell has not been properly configured to use 'conda activate'.

烈酒焚心 提交于 2020-05-08 13:55:40
在vs code下打开终端会报错Your shell has not been properly configured to use 'conda activate'. 解决方法: 1、激活环境 # 激活环境 source activate 2、退出环境 conda deactivate 3、激活base conda activate base h好像这个办法只能短暂的解决问题,再打开还是会出现,最后从anaconda navigator界面卸载vs code再安装就没问题了...... 来源: oschina 链接: https://my.oschina.net/u/4412579/blog/4270268

短视频上看到的代码雨,在这里送给想要的小伙伴们!超简单

丶灬走出姿态 提交于 2020-05-08 09:47:00
前言 本文的文字及图片来源于网络,仅供学习、交流使用,不具有任何商业用途,版权归原作者所有,如有问题请及时联系我们以作处理。 作者:William Mannard 欢迎点击右上角关注小编,除了分享技术文章之外还有很多福利,私信学习资料可以领取包括不限于Python实战演练、PDF电子文档、面试集锦、学习资料等。 使用Python模拟电影《黑客帝国/The Matrix》中代码雨效果。该项目支持用户自定义显示的字符集,接受键盘控制。 开发工具 Python版本:3.6.4 相关模块: random模块; pygame模块; 环境搭建 安装Python并添加到环境变量,pip安装需要的相关模块即可。 由于个人喜欢中国古典文学,对项目代码作了细微的改动,增加了自定义字符集,部分效果展示如下: 下面逐步介绍如何产生代码雨: 模块安装 使用方法 帮助文档 1.模块安装 Windows下Anaconda安装: char_set = { ' a ' : ' qwertyuiopasdfghjklzxcvbnm ' , ' A ' : ' QWERTYUIOPASDFGHJKLZXCVBNM ' , ' c ' : ' абвгдежзиклмнопрстуфхцчшщъыьэюя ' , ' C ' : ' АБВГДЕЖЗИКЛМНОПРСТУФХЦЧШЩЪЫЬЭЮЯ ' , ' e ' :

Anaconda Python: Delete .tar.gz in pkgs

时光怂恿深爱的人放手 提交于 2020-05-08 08:49:32
问题 Would it be a problem to delete *.tar.gz files in C:\Users\username\AppData\Local\conda\pkgs ? I also see subdirectories of Python of the same Python package, but in different versions (e.g., pandas-0.19.2-np111py27_1 , pandas-0.19.2-np111py35_1 , pandas-0.20.1-np112py27_0 , pandas-0.20.1-np112py35_0 , pandas-0.20.1-np112py36_0 , pandas-0.20.2-np112py27_0 , pandas-0.20.2-np112py36_0 , pandas-0.20.2-np113py36_0 ). I currently have two environments (Python 2.7 and 3.6), so I don't want to be