Python中文
首页
教程
问答
标签
搜索
登录
注册
当我在mac上安装了Python3.5时,终端运行Python2.7。
回答此问题可获得
20
贡献值,回答如果被采纳可获得
50
分。
<p>我在mac上安装、卸载和重新安装pythons, 我觉得事情搞砸了。</p> <p>最初默认情况下,终端在我输入</p> <pre><code>$python </code></pre> <p>,但是在做了一些事情之后,它安装了2.7,现在终端运行的是Python2.7而不是3.5</p> <p>我安装了python 3.5表单<a href="http://python.org/" rel="nofollow">http://python.org/</a>。</p> <p>当我打开bashúu配置文件时</p> <pre><code>$vim ~/.bash_profile </code></pre> <p>这就是出现的</p> <pre><code># virtualenv export WORKON_HOME=~/.virtualenvs source /usr/local/bin/virtualenvwrapper.sh # Setting PATH for Python 3.5 # The orginal version is saved in .bash_profile.pysave PATH="/Library/Frameworks/Python.framework/Versions/3.5/bin:${PATH}" export PATH </code></pre> <p>现在当我输入:</p> <pre><code>$ python </code></pre> <p>这将显示:</p> <pre><code>Python 2.7.11 (default, Jun 23 2016, 17:25:20) [GCC 4.2.1 Compatible Apple LLVM 7.3.0 (clang-703.0.31)] on darwin Type "help", "copyright", "credits" or "license" for more information. >>> </code></pre> <p>如何将所有python内容(删除旧版本等)重置为我第一次购买Mac(python3.5)时的出厂版本?</p>
0 条评论
分类:
Python问答
请先
登录
后评论
默认排序
时间排序
1 个回答
匿名
1天前
擅长:python、mysql、java
<p>这对我有效:</p> <p><strong>Python 3.x</strong></p> <pre><code>python3 </code></pre> <p><strong>Python 2.x</strong></p> <pre><code>python </code></pre> <blockquote> <p>in terminal</p> </blockquote>
请先
登录
后评论
针对此问题:
更多的回答
关注
89
关注
收藏
1
收藏,
216
浏览
网友 提问于 2天前
相关Python问题
如何在python中从数据帧列中删除分类值?
9 回答
如何在python中从数据帧列表中删除引号
6 回答
如何在python中从数据帧创建列表
6 回答
如何在Python中从数据帧创建嵌套的JSON
7 回答
如何在Python中从数据帧显示wordcloud
5 回答
如何在Python中从数据帧的时间戳中删除字符
2 回答
如何在Python中从数据帧绘制简单绘图?
3 回答
如何在python中从数据帧行提取具有特定长度的范围?
4 回答
如何在python中从数据帧设置dict中的值
10 回答
如何在Python中从数据库中获得一个结果
2 回答
如何在python中从数据框中绘制分类条形图
8 回答
如何在Python中从数据框中选择特定细节?
6 回答
如何在python中从数据集中删除unicode
8 回答
如何在python中从数据集中删除某些数值?
3 回答
如何在python中从数据集中选择行
3 回答
如何在Python中从数组中删除元素
9 回答
如何在python中从数组中删除单个倒逗号?
10 回答
如何在python中从数组中删除对象?
5 回答
如何在python中从数组中删除引号
5 回答
如何在python中从数组中删除所有最小值
4 回答