Pandas 环境安装

版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/powerccna/article/details/79017740

有Anaconda软件包,集成了所有的大数据分析包,就没有必要一个个去安装了。

1. 在Liunx下 wget https://repo.continuum.io/archive/Anaconda3-5.0.1-Linux-x86_64.sh, 

2.. 下载完成后#bash Anaconda3-5.0.1-Linux-x86_64.sh,  一路next下去就可以了。

3. 安装完成后通过#conda list可以看到pandas, numpy 都已经安装了

配置启动jupyter notebook

1. 生成配置文件

[root@8734d9814dd1 /]# jupyter notebook --generate-config --allow-root
Writing default config to: /root/.jupyter/jupyter_notebook_config.py
2. 生成密码, 把sha1........密码复制下来

[root@8734d9814dd1 /]# ipython
Python 3.6.3 |Anaconda, Inc.| (default, Oct 13 2017, 12:02:49) 
Type 'copyright', 'credits' or 'license' for more information
IPython 6.1.0 -- An enhanced Interactive Python. Type '?' for help.

In [1]: from notebook.auth import passwd
In [2]: passwd()
Enter password: 
Verify password: 
Out[2]: 'sha1:271c5018c082:78b4415f711d0ab50085c02cb379641645ae7295'
3. 修改配置文件

vi /root/.jupyter/jupyter_notebook_config.py
c.NotebookApp.ip='*'
c.NotebookApp.password = u'sha:ce...'
c.NotebookApp.open_browser = False
c.NotebookApp.port =8889
4. 启动jupyter notebook

root@8734d9814dd1 /]# jupyter notebook --allow-root
[W 13:28:48.965 NotebookApp] WARNING: The notebook server is listening on all IP addresses and not using encryption. This is not recommended.
[I 13:28:48.991 NotebookApp] JupyterLab alpha preview extension loaded from /usr/local/anaconda3/lib/python3.6/site-packages/jupyterlab
JupyterLab v0.27.0
Known labextensions:
[I 13:28:48.992 NotebookApp] Running the core application with no additional extensions or settings
[I 13:28:48.994 NotebookApp] Serving notebooks from local directory: /
[I 13:28:48.994 NotebookApp] 0 active kernels 
[I 13:28:48.994 NotebookApp] The Jupyter Notebook is running at: http://[all ip addresses on your system]:8889/
[I 13:28:48.994 NotebookApp] Use Control-C to stop this server and shut down all kernels (twice to skip confirmation).

通过浏览器访问http://your ip:8889/ 即可



猜你喜欢

转载自blog.csdn.net/powerccna/article/details/79017740
今日推荐