testerSunshine / 12306

12306智能刷票,订票
MIT License
33.88k stars 9.79k forks source link

python run.py 运行报错 Mac 端 安装了 Python2.7和 Python3.6 版本 #407

Closed qwopczy closed 4 years ago

qwopczy commented 5 years ago

raceback (most recent call last): File "run.py", line 3, in from config.serverchanConf import sendServerChan File "/Users/chenyi/Desktop/zUIimge/12306/12306/config/serverchanConf.py", line 4, in from myUrllib.httpUtils import HTTPClient File "/Users/chenyi/Desktop/zUIimge/12306/12306/myUrllib/httpUtils.py", line 9, in from agency.agency_tools import proxy File "/Users/chenyi/Desktop/zUIimge/12306/12306/agency/agency_tools.py", line 8, in from bs4 import BeautifulSoup ModuleNotFoundError: No module named 'bs4' 然后python3 -m pip install sendServerChan 这些库有报错 Could not find a version that satisfies the requirement sendServerChan (from versions: ) No matching distribution found for sendServerChan You are using pip version 18.1, however version 19.2.3 is available 然后pip install --upgrade pip =》Requirement already up-to-date: pip in /usr/local/lib/python3.7/site-packages (19.2.3) 请问怎么解决

jian2333 commented 5 years ago

你试试 sudo python3 run.py

DiggleJone commented 5 years ago

sudo python3 run.py 还是不行,用conda装新的环境,然后试试

rickyeee commented 5 years ago

同求

testerSunshine commented 4 years ago
启动前请先筛选cdn,这点很重要
python3 run.py c
启动服务
python3 run.py r
如果你不知道如何操作,下面的命令可能会帮助你
python3 run.py -h

——————————————————————————
sage: run.py [-h] operate

positional arguments:
  operate     r: 运行抢票程序, c: 过滤cdn, t: 测试邮箱和server酱,server酱
testerSunshine commented 4 years ago

你们不看readme吗?