Windows 下安裝 OpenCC
来源:互联网 发布:改变系统字体大小软件 编辑:程序博客网 时间:2024/06/06 13:04
什麼是OpenCC? 請到這查看
當你很開心的使用以下指令,你就會踢到一個很痛的鐵版。
C:\>pip install opencc-python
然後Python就會跟你抱怨下面的事,
Downloading/unpacking opencc-python
Running setup.py (path:c:\users\xxxx\appdata\local\temp\pip_build_xxxx\opencc-python\setup.py) egg_info for package opencc-python
Traceback (most recent call last):
File "<string>", line 17, in <module>
File "c:\users\jason\appdata\local\temp\pip_build_xxxx\opencc-python\setup.py", line 1, in <module>
from distribute_setup import use_setuptools
ImportError: No module named distribute_setup
Complete output from command python setup.py egg_info:
Traceback (most recent call last):
File "<string>", line 17, in <module>
File "c:\users\jason\appdata\local\temp\pip_build_xxxx\opencc-python\setup.py", line 1, in <module>
from distribute_setup import use_setuptools
ImportError: No module named distribute_setup
----------------------------------------
Cleaning up...
Command python setup.py egg_info failed with error code 1 in c:\users\xxxx\appdata\local\temp\pip_build_xxxx\opencc-python
Storing debug log for failure in C:\Users\Jason\pip\pip.log
解法:
下載 distribute_setup.zip
解壓縮後,把distribute_setup.py放到C:\你安裝Python的目錄\Lib(例如:C:\Python27\Lib)
再執行一次
C:\>pip install opencc-python
Downloading/unpacking opencc-python
Running setup.py (path:c:\users\xxxx\appdata\local\temp\pip_build_xxxx\opencc-python\setup.py) egg_info for package opencc-python
Downloading http://pypi.python.org/packages/source/d/distribute/distribute-0.6.27.tar.gz
Extracting in c:\users\xxxx\appdata\local\temp\tmpeuwfpm
Now working in c:\users\xxxx\appdata\local\temp\tmpeuwfpm\distribute-0.6.27
Building a Distribute egg in c:\users\xxxx\appdata\local\temp\pip_build_xxxx\opencc-python
c:\users\xxxx\appdata\local\temp\pip_build_xxxx\opencc-python\distribute-0.6.27-py2.7.egg
Requirement already satisfied (use --upgrade to upgrade): distribute in c:\python27_x64\lib\site-packages (from opencc-python)
Requirement already satisfied (use --upgrade to upgrade): setuptools>=0.7 in c:\
python27_x64\lib\site-packages (from distribute->opencc-python)
Installing collected packages: opencc-python
Running setup.py install for opencc-python
Successfully installed opencc-python
Cleaning up...
順利完成安裝
- Windows 下安裝 OpenCC
- opencc 安装
- opencc的github地址
- opencc 1.0.2
- 安装opencc出错
- Opencc简体、繁体转换
- python opencc 卡住
- opencc-python 安装
- OpenCC for PHP 优雅的简繁体转换
- 安装openCC 需要先安装cmake
- ubuntu上安装opencc时总会报distribute的错误
- ubuntu繁简体转换 opencc的安装与使用
- java调用opencc进行中文简体繁体转换
- Python使用Opencc库完成字符繁简体转换
- 手动安装opencc(中文简繁体转换插件) ——解决安装opencc时出现HTTP 403错误的问题
- 在 Windows 下安裝 ImageMagick
- MongoDB在windows下安裝
- windows下安裝gitflow
- efen易芬负离子青春能量水
- 什么是EJB?
- getaddrinfo函数使用
- 机电行业如何进行信息化建设
- 黑马程序员——反射
- Windows 下安裝 OpenCC
- 南邮 OJ 1003 斐波那契数列
- eclipse(android)真机调试无法打印logcat解决方案
- 同一网站不同和二级域名和不同子目录的cookie
- 【阅读】《head first html5》第十章——《运用javascript》(实际上的javascript线程)
- 天声人語 20150803
- POJ3264 Balanced Lineup 线段树|ST表
- 日经春秋 20150803
- windows API获取物理内存大于4G的方法