Giter Site home page Giter Site logo

Install fail on python 3.7 about kociemba HOT 9 OPEN

muodov avatar muodov commented on September 18, 2024
Install fail on python 3.7

from kociemba.

Comments (9)

Oslomayor avatar Oslomayor commented on September 18, 2024

I have the same probem when use pip install on windows10, python3.6:
File "C:\Users\Denis\AppData\Local\Temp\pip-install-rma7iced\kociemba\setup.py", line 5, in
long_description = open(os.path.join(os.path.dirname(file), 'README.md')).read()
UnicodeDecodeError: 'gbk' codec can't decode byte 0x99 in position 4168: illegal multibyte sequence
I have installed VC++ build tools from Microsoft and upgraded pip to the newest version, but it does' work at all.

from kociemba.

Oslomayor avatar Oslomayor commented on September 18, 2024

It's driving me crazy. Any one can tell me why?

kociemba_fail

from kociemba.

muodov avatar muodov commented on September 18, 2024

@Oslomayor Thanks for the info!
Judging by the traceback, I think the problem is in this line https://github.com/muodov/kociemba/blob/master/setup.py#L5

I guess Windows is using another encoding by default, so changing the line to this might solve the problem:

long_description = open(os.path.join(os.path.dirname(__file__), 'README.md'), encoding='utf-8').read()

I don't have a Windows environment to confirm this. @Oslomayor would you mind trying it on your machine?

from kociemba.

Oslomayor avatar Oslomayor commented on September 18, 2024

@muodov Thanks for you reply! I changing the line as you told, however, it doesn't work. I guess there is something wrong with my Windows VC++ environment. Because it throws out a error like this:

error: Microsoft Visual C++ 14.0 is required.

I need some time to fix it.

from kociemba.

cubhe avatar cubhe commented on September 18, 2024

i think the problem is that the bottom code is C for linux, and python just call the C language code.

so i think change the local C code may work and do not use pip.

from kociemba.

muodov avatar muodov commented on September 18, 2024

@cubhe I don't think it's the case. There is no OS-specific in the C code. And some users have it running under windows.

from kociemba.

muodov avatar muodov commented on September 18, 2024

@Oslomayor @unaided Have you guys had any luck with this issue?

from kociemba.

Oslomayor avatar Oslomayor commented on September 18, 2024

@muodov Not yet. And I use MATLAB to solve Rubik's Cube now. Thanks : )

from kociemba.

blahberi avatar blahberi commented on September 18, 2024

i have the same problem

from kociemba.

Related Issues (19)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.