Python中文
首页
教程
问答
标签
搜索
登录
注册
python和python2.7运行不同的python实例
回答此问题可获得
20
贡献值,回答如果被采纳可获得
50
分。
<p>这是我写<code>whereis python2.7</code>时的输出</p> <p><code>python2.7: /usr/local/bin/python2.7 /usr/local/lib/python2.7 /opt/python2.7.1/bin/python2.7 </code></p> <p>pytho的版本是pytho的版本。在</p> <p>当我写<code>python</code>时,它运行<code>python2.7.1</code>,因为我更改了bash配置文件。但是当我写<code>python2.7</code>时,它运行<code>python2.7.2</code>。在</p> <p>我想完全删除<code>python2.7.2</code>,它位于<code>/usr/local/</code>下,并使用<code>/opt/python2.7.1</code>下的二进制文件。在</p> <p>我怎样才能解决这个问题?在</p> <P>注意:它是一个CENTSO5服务器,Python 2.4已经安装好了。在</p>
0 条评论
分类:
Python问答
请先
登录
后评论
默认排序
时间排序
1 个回答
匿名
1天前
擅长:python、mysql、java
<p>您可以简单地尝试在~/.bash_aliases中使用别名,这样您就可以始终在终端和用户实例中引用所需的python。我不建议删除python2.7.2,因为它可能会导致依赖性问题</p> <p>像这样</p> <pre><code>alias python2.7 = "/path/to/python2.7.1/" </code></pre>
请先
登录
后评论
针对此问题:
更多的回答
关注
89
关注
收藏
1
收藏,
216
浏览
网友 提问于 2天前
相关Python问题
如何为此数据帧创建散点图?
1 回答
如何为此编写Django模板
10 回答
如何为此表达式编写正则表达式?
8 回答
如何为步进电机选择合适的值?
3 回答
如何为每15分钟间隔的日期时间行(在新列中)添加标签?
9 回答
如何为每一列创建汇总表?
5 回答
如何为每一组groupbyPandas做滚动“得到假人”
10 回答
如何为每一行分别运行函数(python)?
1 回答
如何为每一行生成一个随机数?
7 回答
如何为每一轮将pytorch模型输出存储到numpy
6 回答
如何为每个.py-fi文件创建单独的zip文件
1 回答
如何为每个<li class=”“><a>找到最近的上述同级<li>?
9 回答
如何为每个CSV列生成特定的文件?
10 回答
如何为每个csv文件使用read_csv,即使它是空的?PythonPandas
9 回答
如何为每个CSV文件创建单独的Pandas数据帧并给它们起有意义的名称?
10 回答
如何为每个datetime和每个id创建一行?
4 回答
如何为每个Django型号选择赋予不同的颜色
1 回答
如何为每个Django模型实例安排一个周期性的芹菜任务?
3 回答
如何为每个Django视图设置一个装饰器?
4 回答
如何为每个for循环迭代分配变量
2 回答