Comments (5)
python 3.11.5
更新下依赖:
aiohttp==3.8.5
async-timeout==4.0.3
attrs==23.1.0
certifi==2023.7.22
chardet==5.2.0
idna==3.4
multidict==6.0.4
protobuf==4.24.3
pycryptodome==3.19.0
PyExecJS==1.5.1
requests==2.31.0
six==1.16.0
typing-extensions==4.8.0
urllib3==2.0.5
yarl==1.9.2
from real-url.
所谓依赖,不单单只是第三方包,还包括与其兼容匹配的版本。一般情况下,包发布者并不会为过时的版本补上后来才发布的 Python 对应二进制,具体情况可以到 PyPI 发布页查看。所以,这确实不是项目新旧问题,而是项目中没有标记 Python 具体版本,没有及时更新依赖,这其实并没有太大问题。只是,当你使用新版 Python 时,那些指定版本且包含二进制的依赖是过时失效的,纯脚本包则不会有这个问题。
解决方案,三选一:
-
安装旧版 Python,也就是当时作者使用的版本 (应该是 3.8),完全复制当时的环境。
操作简单,但如果新旧 Python 共存,使用时需切换版本,略麻烦。 -
全部依赖都安装当前 Python 下可用的最新版本,如果包之间出现版本冲突,或者脚本不兼容新版依赖,就再调整包版本。
一般来讲,都会一次通过,使用上没什么变化。 -
安装依赖的编译环境并编译安装。
不建议尝试,因为时间久了后,编译环境和依赖本身也都可能会有各种原因导致的版本和依赖问题的。
from real-url.
十分感谢,看了你的回答我豁然开朗,我看待这个依赖模块角度很高,我整体化**比较严重,没有想到把任何一个数据都看作一个个体,这样看来我之前的所有报错都十分合理。环境在我眼里又变的比我之前想的要苛刻和严谨,依赖又比我之前想的灵活很多,再次十分感谢能在百忙之中回答我这个门外汉的疑惑。谢谢!!!
from real-url.
py:3.11.5
所有依赖更新为最新稳定版。
问题解决。
from real-url.
如果python版本为3.12
可以更改
aiohttp==3.9.0b0
from real-url.
Related Issues (20)
- 抖音获取直播流地址貌似不行了 HOT 6
- 想请教一下为什么抓取的地址potplayer播放不了
- 快手一直显示直播间不存在或未开播,抓弹幕也不能用 HOT 1
- 直播源如何修改画质(抖音)
- 抖音接口已经失效 HOT 1
- 有直播平台获取直播源失败
- bilibili弹幕获取异常 HOT 2
- 哥哥们 快手弹幕好像不能用啊 有没有新的 HOT 1
- Cryptographic API Misuse Vulnerability: DES ECB used for encryption
- 求技术 定制工具 HOT 1
- 请教一下 HOT 1
- six包报错
- instagram能否获取直播源?
- 虎牙又出问题了,断流严重 HOT 1
- 虎牙直播现在只能播放一小段视频,然后就会断流 HOT 9
- 有没有大佬会获取虎牙小程序 宠物马拉松的开奖结果 HOT 1
- 有最新的虎牙拉流地址方法么 HOT 12
- 抖音19位的room_id从哪获取 HOT 6
- 更新虎牙 2024 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from real-url.