Sab*_*tra 18 opensuse python-3.x
我已经下载了Python3.3并在解压后我发布了./configure,make并且make altinstall.当我发布时python3.3,显示以下消息:
致命的Python错误:Py_Initialize:无法获取语言环境编码
ImportError:没有名为'encodings'的模块
中止
我检查了Python环境变量,它们似乎没问题.
在我的.profile插入以下几行:
export PYTHONHOME=/usr/local/lib/python3.3/:/usr/local/lib/python3.3/lib/:/usr/local/lib/python3.3/lib/site-packages/
export PYTHONPATH=/usr/local/bin/
export PATH=$PYTHONPATH:$PATH
Run Code Online (Sandbox Code Playgroud)
然后我做了source .profile,但Python不会启动.
在Eclipse中,安装之后pydev,当我尝试从/ usr/local/bin添加Python解释器时,我收到以下消息:
No output was in the standard output when trying to create the interpreter info.
The error output contains:>>Could not find platform dependent libraries <exec_prefix>
Consider setting $PYTHONHOME to <prefix>[:<exec_prefix>]
Traceback (most recent call last):
File "/home/sabya/eclipse/plugins/org.python.pydev_2.7.3.2013031601/pysrc/interpreterInfo.py", line 52, in <module>
import time
ImportError: No module named 'time'
Run Code Online (Sandbox Code Playgroud)
我无法理解为了让Python工作我还需要设置什么.我正在运行OpenSuSE 12.3.
如果您在 Heroku 上看到此问题,请确保使用“python-3.5.2”或来自https://devcenter.heroku.com/articles/python-runtimes#supported-python的最新运行时创建一个 runtime.txt 文件-运行时
这让 Heroku 知道使用 Python 3.x 运行时。
| 归档时间: |
|
| 查看次数: |
37358 次 |
| 最近记录: |