Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

请问,在MAC下如何使用? #11

Open
jiangshan1225 opened this issue Aug 14, 2018 · 6 comments
Open

请问,在MAC下如何使用? #11

jiangshan1225 opened this issue Aug 14, 2018 · 6 comments

Comments

@jiangshan1225
Copy link

无法运行啊,首先报错ASSII码, 然后报各种错误。

@chenjiandongx
Copy link
Owner

依赖安装了没有?

@jiangshan1225
Copy link
Author

jiangshan1225 commented Aug 20, 2018

$ cd '/Users/Jason/Documents/GitHub/mzitu/' && '/usr/bin/pythonw' '/Users/Jason/Documents/GitHub/mzitu/analysis.py' && echo Exit status: $? && exit 1
File "/Users/Jason/Documents/GitHub/mzitu/analysis.py", line 8
SyntaxError: Non-ASCII character '\xe5' in file /Users/Jason/Documents/GitHub/mzitu/analysis.py on line 8, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details

这个是报错信息呢,看不懂。。

基本上全部东西都安装好了呢

@chenjiandongx
Copy link
Owner

你是 Python2 是吧

@jiangshan1225
Copy link
Author

Python 3.7.0 (v3.7.0:1bf9cc5093, Jun 26 2018, 23:26:24)
[Clang 6.0 (clang-600.0.57)] on darwin
Type "copyright", "credits" or "license()" for more information.

这个应该是3.7吧

@jiangshan1225
Copy link
Author

Traceback (most recent call last):
File "<pyshell#2>", line 1, in
python /Users/Jason/Documents/GitHub/mmjpg.py
NameError: name 'python' is not defined

@chenjiandongx
Copy link
Owner

chenjiandongx commented Aug 22, 2018

  1. git clone https://github.com/chenjiandongx/mmjpg.git
  2. cd mmjpg
  3. pip install -r requirements.txt
  4. edit mm_crawler.py DIR_PATH constant
  5. python mm_crawler.py

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants