当前位置:网站首页>ModuleNotFoundError: No module named ‘fake_useragent‘
ModuleNotFoundError: No module named ‘fake_useragent‘
2022-07-15 11:47:00 【风吹落叶花飘荡】
ModuleNotFoundError: No module named ‘fake_useragent‘
文章目录
一、现象
直接输入pip install fake_useragent
看似下载了,却依然会报ModuleNotFoundError: No module named ‘fake_useragent‘的错误
或者就不来虚的,直接报错
二、解决方法
注:以下四种解决方法并不会冲突,可以都试一波
1、继续运行pip install fake_useragent
再尝试一波
2、运行pip版本号+ install fake_useragent
a、获取python版本

输入:python
获取python的版本
b、下载fake_useragent
由于我的python版本是3.8s所以输入:
pip3.8 install fake_useragent
3、运行pip install -U fake_useragent

下载无符号版
4、利用whl安装fake_useragent
fake-useragent官网:https://pypi.org/project/fake-useragent/#files
下载最新的 fake-useragent 包,
查看下载路径:
然后 在cmd ,直接cd 到tar 包的目录,用命令安装:pip install ./fake-useragent-0.1.11.tar.gz
提示安装成功!
三、当以上方法都不行时的绝招
再次运行一波正经的下载,试图下载fake_useragent
pip install fake_useragent -i https://pypi.tuna.tsinghua.edu.cn/simple/
可能会有惊喜
边栏推荐
- Send your code into space and develop 'the greatest work' with Huawei cloud
- Fragment (III) using fragment in viewpager
- 有奖调研 | openEuler 开发者体验调研问卷
- 使用USBasp 通过ICSP模式给arduino UNO烧写程序
- Google proposes the reliability machine learning model plex: let the large model put forward appropriate prediction results for out of distribution data
- 可落地的DDD(7)-战术设计上的一些误区
- 从零实现深度学习框架——GloVe
- any类型转换之谜
- Redis uses pipeline
- Zhiyuan community weekly 89: Yann Lecun and other writers responded to Marcus' symbolic reasoning debate; Zhu Songchun's new work of aligning AI value with science's official website headlines; Ma Yi,
猜你喜欢

Solve the problem of installing Oracle /usr/bin/ld: cannot find -lclntshcore

使用 Terraform 在阿里云上快速部署 MQTT 集群

智源社区周刊#89:Yann LeCun等撰文回应Marcus符号推理争论;朱松纯团队AI价值对齐新工作登Science官网头条;马毅沈向洋等公开AI智能的综述论文

Event preview | Apache Doris x Apache seatunnel joint meetup to start registration!

送你的代码上太空,与华为云一起开发'最伟大的作品'

Nacos as the registration and discovery center and configuration center of microservice architecture

在 CDP中使用Iceberg 为数据湖仓增压

Google 推荐在项目中使用 sealed 和 RemoteMediator

在 PostgreSQL 15 上使用 postgres_fdw 进行事务的并行提交

Redis uses pipeline
随机推荐
Landing DDD (7) - some misunderstandings in tactical design
2022-04-20 unity beginner 9 - others
03 key control LED
有奖调研 | openEuler 开发者体验调研问卷
08 use timer to control LED flashing
[recruitment] 2022 Xiangguang award annual ESG influence investment award is officially launched!
Kotlin StateFlow 搜索功能的实践 DB + NetWork
Cache avalanche, cache breakdown, cache penetration
XPath actual combat: climbing the learning ape land (Part 1)
相關小知識點
XPath Combat: climbing the learning ape land (Part 2)
2022-04-18 unity getting started 3 - script Basics
送你的代码上太空,与华为云一起开发'最伟大的作品'
MQTT---SUBSCRIBE和SUBACK
2022-04-18 Unity入门2——Unity工作原理
送你的代碼上太空,與華為雲一起開發'最偉大的作品'
Mqtt--- connect connection
阿里云物联网平台搭建
10分钟带你进入Swagger的世界,快来看一看吧
基于eTS高效开发HarmonyOS课程类应用