Windows Mounted OPENCC

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.