在python3.4中访问python2.7模块

2024-06-25 23:43:01 发布

您现在位置:Python中文网/ 问答频道 /正文

我想在Python3.4中访问Python2.7模块

Python 2.7的工作原理:

xxx@xxx-Dell-System-XPS-L502X:~$ python
Python 2.7.6 (default, Mar 22 2014, 22:59:56) 
[GCC 4.8.2] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import nltk
>>> 

Python 3.4失败:

^{pr2}$

有什么解决办法吗?在


Tags: 模块defaultontypehelpsystemmardell