pycharm下配置jupyter_安装anaconda及pycharm 启动Jupyter

news/2024/7/24 2:29:59 标签: pycharm下配置jupyter

昨天重装系统之后记录了配置C++环境,今天继续配置Python环境。

这个anaconda好啊 有Jupyyter(一个浏览器界面的python,调试相当方便),具体优势见下面链接

https://www.zhihu.com/question/27615938

一/Anaconda的安装

下载Anaconda安装包,执行以下指令

bash Anaconda-4.3.0-Linux-x86_64.sh

conda update anaconda

完成上面之后,配置以下环境变量

$ sudo gedit ~/.bashrc

export PATH="/home/liu/anaconda3/bin:$PATH"

export LD_LIBRARY_PATH="/home/liu/anaconda3/lib:$LD_LIBRARY_PATH"

其实在安装的时候会问你是否添加环境变量

二/Jupyter的启动

jupyter notebook

返回

[I 15:41:15.999 NotebookApp] Writing notebook server cookie secret to /run/user/1000/jupyter/notebook_cookie_secret

[I 15:41:16.044 NotebookApp] Serving notebooks from local directory: /home/shipeng

[I 15:41:16.045 NotebookApp] 0 active kernels

[I 15:41:16.045 NotebookApp] The Jupyter Notebook is running at: http://localhost:8888/?token=8095a975736780482427676dfe1ff4591f1e1d14c684e141

[I 15:41:16.045 NotebookApp] Use Control-C to stop this server and shut down all kernels (twice to skip confirmation).

[C 15:41:16.046 NotebookApp]

Copy/paste this URL into your browser when you connect for the first time,

to login with a token:

http://localhost:8888/?token=8095a975736780482427676dfe1ff4591f1e1d14c684e141

/usr/lib/firefox/firefox: /home/liu/anaconda3/lib/libstdc++.so.6: version `GLIBCXX_3.4.21' not found (required by /usr/lib/firefox/firefox)

将上面出现的网址输入到浏览器

http://localhost:8888/?token=8095a975736780482427676dfe1ff4591f1e1d14c684e141,完成。

上面明显报错了,解决方法如下:

conda install libgcc

重新输入

jupyter notebook

三/Pycharm的安装

安装pycharm我主要用来调试tensorflow,用这个比eclipse方便多了有木有!!!

安装Pycharm必选安装JDK,参考我的eclipse的安装。

tar -zxvf pycharm-professor-5.0.4.tar.gz

cd pycharm-community-5.0.4/bin/

./pycharm.sh会弹出注册窗口

添加快捷方式

cd /usr/share/applications

/usr/share/applications$ sudo gedit Pycharm.desktop

[Desktop Entry]

Encoding=UTF-8

Name=Pycharm

Comment=Pycharm3:The Python IDE

Exec=sh /home/liu/pycharm-2016.3.3/bin/pycharm.sh

Icon=/home/liu/pycharm-2016.3.3/bin/pycharm.png

Terminal=false

Type=Application

Categories=GNOME;Application;Development;

StartupNotify=true

cp Pycharm.desktop  ~/Desktop/

cd  ~/Desktop/

sudo chmod 777 Pycharm.desktop


http://www.niftyadmin.cn/n/1468027.html

相关文章

python utc时间如何取整_如何在Djang中取整时区软件日期

我试图将默认时区datetime转换为localtime,并在Django视图中将时间取整为15分钟。我有以下循环时间函数:def roundTime(dtNone, dateDeltatimedelta(minutes1)):"""Round a datetime object to a multiple of a timedeltadt : datetime.d…

打字机运行时验证

技术 (TECHNOLOGY) 问题 (The Problem) Every time our application receives some data input via an application boundary at runtime, it should be at least validated against a data scheme. In typed languages like Typescript, it also makes sense to map the input…

通过angular cli混合应用程序将angularjs迁移到angular

The purpose of this tutorial is to provide another way to do the migration from an AngularJS application to the latest version of Angular. At the time that this guideline was done, Angular is at the version 9.本教程的目的是提供从AngularJS应用程序迁移到最新…

python 发送字节_在Python中通过ZeroMQ发送原始字节

我正在移植一些使用原始TCP套接字到ZeroMQ的Python代码,以获得更好的稳定性和更清晰的界面.马上,我可以看到一个原始字节数据包没有像我期望的那样发送.在原始套接字中:import socketsock socket.socket(socket.AF_INET, socket.SOCK_STREAM)sock.connect((HOST, P…

firebase分析_用于Nativescript移动应用程序的Firebase分析

firebase分析Collecting and analyzing user behaviour is always a considerable concern of any business because nobody dares to guarantee their mobile application can meet the needs of the end-user.收集和分析用户行为始终是任何企业关注的问题,因为没有…

java三类_Java之JVM的深入探究(三)--jvm三类配置参数详解

预计阅读时间: 11分钟对于JVM的进一步探究,有了之前两篇文章对JAVA JVM的了解,我想一定是对JVM有了初步的一些认识,接着我们一起在看看java JVM的相关三类配置参数。其中这三类参数分别是:1、JVM跟踪参数 2、JVM堆分配参数 3、JVM栈分配参数;跟踪参…

java servlet文档_如何从Java Servlet返回HTML文档?

这可以返回一个字符串:import javax.servlet.http.*;SuppressWarnings("serial")public class MonkeyServlet extends HttpServlet {public void doGet(HttpServletRequest req, HttpServletResponse resp)throws IOException {resp.setContentType("…

nod32用户名获取器_内置调试器的nod​​ejs

nod32用户名获取器Let’s imagine that I have a simple JavaScript file and I want to calculate the sum of integer numbers but I have a problem and I want to debug this file(but I don’t want to use console.log as a debugger!)假设我有一个简单JavaScript文件&am…