【已解决】No Python at ‘D:\Python\python.exe‘

起因,我把我的python解释器,重新移了个位置,导致我在Pycharm中的爬虫项目启动,结果出现这个问题。

然后,从网上查到了这篇博客: 【已解决】No Python at ‘D:\Python\python.exe‘-CSDN博客

但是,按照上述方法做了,并没有解决,至于为什么?上面,这个博客就是利用移动之后的解释器路径,也就是用基础解释器的路径,新建了python环境。但是我爬虫项目的解释器环境,是由没移动之前的python解释器,创建出来的虚拟python环境。

也就是说,我要是想重新运行这个项目:

1.是利用上述方法 ,在新的解释器环境里面,把我爬虫用到的包,重新 pip以下

2. 或者,修改我爬虫项目的虚拟python环境配置文件

PS : 理解什么是python虚拟环境:12. 虚拟环境和包 — Python 3.10.13 文档 

将这里之前解释器的目录,改成现在解释器的目录。

  • 1
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 打赏
    打赏
  • 0
    评论
Although I’d taken a lot of programming classes in college, I never fully appreciated programming until I had a job that involved a lot of repetitive tasks. After amusing myself by automating much of that job, I decided to return to school and study biol- ogy, which is when I took my first GIS course. I was instantly in love, and managed to convince someone to give me a biology degree for writing an extension for ArcView GIS (a precursor to A rc GIS , for you Esri fans out there). After finishing that up, I went to work for the Remote Sensing/Geographic Information Systems Laboratory at Utah State University. One of my first projects involved some web mapping, and I soon became a big fan of the open source UMN M ap S erver software. That was my introduc- tion to open source geospatial software, including GDAL . I’m fairly certain that I didn’t appreciate the power of the GDAL/OGR library when I first learned about it, but I came to my senses once I started using it in my C++ and C# code. In the College of Natural Resources, there weren’t many people around who were interested in coding, but I did get to point people to the GDAL command-line utilities on a regular basis. But then Esri introduced Python as the scripting language of choice for A rc GIS , and things started to change. I don’t think I had used Python much before then, but playing with arcgisscripting (the original Esri Python module) made me realize how much I enjoyed working with Python, so naturally I had to start using GDAL with it as well. More importantly for this book, my coworker John Lowry suggested that we team- teach a Python-for- GIS class. He taught students how to use Python with A rc GIS , and I taught them about GDAL . The class turned out to be popular, so we taught it that way for another few years until John moved away. I took over the entire class and have been teaching it in various configurations ever since. I’ve never bothered to take the class material from the first two years off the web, however, which is how Manning found me. They asked if I would write a book on using GDAL with Python. I’d never had the desire to write a book, so it took a bit of persuasion to convince me to do it. In the end, it was my love for teaching that won me over. I’ve discovered over the years that I really enjoy teaching, mostly because I love watching students incorporate what they’re learning into the rest of their work. This is especially true of graduate students, some of whom might not have completed their research in a timely manner (or at all) if they hadn’t learned how to write code. I know that these skills will continue to assist them throughout their careers, and my hope is that this book will provide the same help to you, no matter if you’re a student, professional, or a hobbyist. This is fun stuff, and I hope you enjoy it as much as I do!
Title: Automate the Boring Stuff with Python: Practical Programming for Total Beginners Author: Albert Sweigart Length: 504 pages Edition: 1 Language: English Publisher: No Starch Press Publication Date: 2015-05-01 ISBN-10: 1593275994 ISBN-13: 9781593275990 If you've ever spent hours renaming files or updating hundreds of spreadsheet cells, you know how tedious tasks like these can be. But what if you could have your computer do them for you? In Automate the Boring Stuff with Python, you'll learn how to use Python to write programs that do in minutes what would take you hours to do by hand—no prior programming experience required. Once you've mastered the basics of programming, you'll create Python programs that effortlessly perform useful and impressive feats of automation to: Search for text in a file or across multiple files Create, update, move, and rename files and folders Search the Web and download online content Update and format data in Excel spreadsheets of any size Split, merge, watermark, and encrypt PDFs Send reminder emails and text notifications Fill out online forms Step-by-step instructions walk you through each program, and practice projects at the end of each chapter challenge you to improve those programs and use your newfound skills to automate similar tasks. Don't spend your time doing work a well-trained monkey could do. Even if you've never written a line of code, you can make your computer do the grunt work. Learn how in Automate the Boring Stuff with Python. Table of Contents Part I. Python Programming Basics Chapter 1. Python Basics Chapter 2. Flow Control Chapter 3. Functions Chapter 4. Lists Chapter 5. Dictionaries and Structuring Data Chapter 6. Manipulating Strings Part II. Automating Tasks Chapter 7. Pattern Matching with Regular Expressions Chapter 8. Reading and Writing Files Chapter 9. Organizing Files Chapter 10. Debugging Chapter 11. Web Scraping Chapter 12. Working with Excel Spreadsheets Chapter 13. Working with PDF and word Documents Chapter 14. Working with CSV Files and JSON Data Chapter 15. Keeping Time, Scheduling Tasks, and Launching Programs Chapter 16. Sending Email and Text Messages Chapter 17. Manipulating Images Chapter 18. Controlling the Keyboard and Mouse with GUI Automation Appendix A. Installing Third-Party Modules Appendix B. Running Programs Appendix C. Answers to the Practice Questions

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

本郡主是喵

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值