Giter Club home page Giter Club logo

Comments (6)

syaning avatar syaning commented on August 27, 2024

@jiangqideng 你用的应该是python2.x吧?目前只支持python 3.x,你看下是不是这个问题。

from zhihuapi-py.

jiangqideng avatar jiangqideng commented on August 27, 2024

@syaning 嗯,是的,换到python3,前面正常了,但后面还得去安装Visual C++,懒得折腾了...

from zhihuapi-py.

syaning avatar syaning commented on August 27, 2024

@jiangqideng 为什么会需要 Visual C++ 。。。

from zhihuapi-py.

jiangqideng avatar jiangqideng commented on August 27, 2024

@syaning 如下:

error: Microsoft Visual C++ 14.0 is required. Get it with "Microsoft Visual C++ Build Tools": http://landinghub.visualstudio.co
m/visual-cpp-build-tools

    ----------------------------------------
Command "c:\users\jiang\appdata\local\programs\python\python36\python.exe -u -c "import setuptools, tokenize;__file__='C:\\Users\\j
iang\\AppData\\Local\\Temp\\pip-build-gn5yobyr\\lxml\\setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('
\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record C:\Users\jiang\AppData\Local\Temp\pip-ccbwdwcq-recor
d\install-record.txt --single-version-externally-managed --compile" failed with error code 1 in C:\Users\jiang\AppData\Local\Temp\p
ip-build-gn5yobyr\lxml\

from zhihuapi-py.

syaning avatar syaning commented on August 27, 2024

@jiangqideng 我知道了,应该是因为依赖了pyquery这个包,而pyquery依赖了lxml,而lxml在windows下安装好像容易出问题。

你可以试下 http://www.lfd.uci.edu/~gohlke/pythonlibs/ 这里build好的 lxml 包。

from zhihuapi-py.

jiangqideng avatar jiangqideng commented on August 27, 2024

@syaning 可以了,感谢!

from zhihuapi-py.

Related Issues (2)

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.