What is OPENCC? Please come here to see
When you are very happy with the following instructions, you will kick into a very painful iron version.
1 |
C:\>pip Install Opencc-python |
And then Python will complain to you about the following things,
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, 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, 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
Solution:
Download the Distribute_setup.zip
After decompression, put the distribute_setup.py in C:\ you install Python's \lib (for example: C:\Python27\Lib)
Do it again?
1 |
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 into c:\python27_x64\lib\site-packages (from opencc-py Thon)
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 ...
Complete installation