Python环境安装
下载pythonhttps://www.python.org/downloads/mac-osx/下载后安装安装ipython:http://ipython.org/install.htmlsudo easy_install pippip install ipython
·
下载pythonhttps://www.python.org/downloads/mac-osx/
下载后安装
安装ipython:http://ipython.org/install.html
sudo easy_install pip
sudo pip3 install ipython
安装好以后,输入ipython3命令发现没有这个,所以进入到 /usr/local/bin 目录
然后 vim ipython3 输入如下内容,退出,chmod +x ipython3
#!/usr/local/bin/python3.7
## python目录
#-*- coding: utf-8 -*-
import re
import sys
from IPython import start_ipython
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exit(start_ipython())
###python3.7目录 可以修改成实际ipython3的版本
成功后输入ipython3可以看到以下信息
Python 3.7.3 (v3.7.3:ef4ec6ed12, Mar 25 2019, 16:52:21)
Type 'copyright', 'credits' or 'license' for more information
IPython 7.4.0 -- An enhanced Interactive Python. Type '?' for help.
原文:https://blog.csdn.net/tanningzhong/article/details/84945089
更多推荐
已为社区贡献1条内容
所有评论(0)