Pycharm 连接Linux 远程开发

Pycharm 连接Linux 远程开发

在Liunx上安装python3.6(Ubuntu16)

下载Python-3.6.4.tgz

解压
tar -xzvf Python-3.6.4.tgz
进入目录:
cd Python-3.6.4/

添加配置:
./configure --prefix=/usr/python
  这里配置自己的安装目录,接下来编译源码:

make
  执行安装:
sudo make install
  整个过程大约5-10分钟,安装成功之后,安装目录就在/usr/python

which python

$ sudo mv /usr/bin/python /usr/bin/python.bak
$ sudo ln -s /usr/python/bin/python3 /usr/bin/python

pyvip@Vip:~/Python-3.6.4$ python
Python 3.6.4 (default, Mar 20 2018, 14:02:04) 
[GCC 5.4.0 20160609] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> 
这样就建立好了,以后直接执行python命令,就相当于调用python3,实际上python3也是个软链接,链接到python3.6


# 安装常用软件包
sudo pip install -i  https://pypi.tuna.tsinghua.edu.cn/simple pillow
sudo pip install -i  https://pypi.tuna.tsinghua.edu.cn/simple lxml
sudo pip install -i  https://pypi.tuna.tsinghua.edu.cn/simple beautifulsoup4
sudo pip install -i  https://pypi.tuna.tsinghua.edu.cn/simple pymysql
sudo pip install -i  https://pypi.tuna.tsinghua.edu.cn/simple HTMLParser
sudo pip install -i  https://pypi.tuna.tsinghua.edu.cn/simple pymongo

 

Pycharm界面操作

 

 

 

 

 

 

 

 

 

 

 

 

 

 

posted @ 2018-03-17 07:54  一只小小的寄居蟹  阅读(12296)  评论(0编辑  收藏  举报