pycharm

Trouble installing scipy via pyCharm windows 8 - no lapack / blas resources found

萝らか妹 提交于 2020-08-22 09:46:30
问题 I'm currently having trouble installing scipy via PyCharm's package manager. I have installed numpy successfully and do have the Microsoft Visual Studio C/C++ compiler in the System Variables. However, when it's time to install scipy in PyCharm, the following error occurs: Executed Command: pip install scipy Error occured: numpy.distutils.system_info.NotFoundError: no lapack/blas resources found I have seen other resources on installing blas / lapack on windows, but I'm unsure if it will work

How to reinitialize the Python console in PyCharm?

送分小仙女□ 提交于 2020-08-22 07:30:52
问题 I've seen other IDEs have the option to right click and reinitialize the environment. Does anyone know if this is possible in PyCharm, and if so, how it's done? 回答1: There is a little reset button (small square with a curved green arrow can be seen above) on the top left of the console that says "Rerun" as the tool tip; this seems to reset the console. If you can't see the button, the Toolbar might be hidden. To get the Toolbar you need to right click on the "Python Console" tab, and click on

Drawing with turtle(python) using PyCharm

佐手、 提交于 2020-08-22 06:12:42
问题 I'm running the latest PyCharm Pro version and trying to run the below code from a scratch file but it doesn't seem to work import turtle wn = turtle.Screen() alex = turtle.Turtle() alex.forward(150) alex.left(90) alex.forward(75) By not working I mean, no window is popping out however I do see in the output saying Process finished with exit code 0 Any idea If it can be done via PyCharm What am I missing in terms of configuration Cheers 回答1: I ran into the same problem. Turns out the solution

PyCharm Not Properly Recognizing Requirements - Python, Django

此生再无相见时 提交于 2020-08-21 05:01:09
问题 Often requirements show up in requirements.txt like this: django-registration But in INSTALLED_APPS it appears as registration . So when you import like: from registration.signals import user_registered This is valid but PyCharm is showing a red squiggly line under the word registration in from registration... that says "Package 'registration' is not listed in project requirements". How can I remedy this? UPDATE I was able to find a way to make the warning go away but it's not a good solution

ModuleNotFoundError: No module named 'distutils.core'

僤鯓⒐⒋嵵緔 提交于 2020-08-20 19:15:41
问题 I've recently upgraded from Ubuntu 18.04 to 19.04 which has python 3.7 . But I work on many projects using Python 3.6 . Now when I try to create a virtualenv with Python 36 in PyCharm, it raises: ModuleNotFoundError: No module named 'distutils.core' I can't figure out what to do. I tried to install distutils: milano@milano-PC:~$ sudo apt-get install python3-distutils Reading package lists... Done Building dependency tree Reading state information... Done python3-distutils is already the

ModuleNotFoundError: No module named 'distutils.core'

旧巷老猫 提交于 2020-08-20 19:12:26
问题 I've recently upgraded from Ubuntu 18.04 to 19.04 which has python 3.7 . But I work on many projects using Python 3.6 . Now when I try to create a virtualenv with Python 36 in PyCharm, it raises: ModuleNotFoundError: No module named 'distutils.core' I can't figure out what to do. I tried to install distutils: milano@milano-PC:~$ sudo apt-get install python3-distutils Reading package lists... Done Building dependency tree Reading state information... Done python3-distutils is already the

Python爬虫详解,每个步骤都给你细致的讲解(附源码)

心不动则不痛 提交于 2020-08-20 08:15:24
前言 本文的文字及图片来源于网络,仅供学习、交流使用,不具有任何商业用途,版权归原作者所有,如有问题请及时联系我们以作处理。 今天来教大家如何使用Python来爬取博海拾贝的图片,分类保存,写入文档。 项目目标 创建一个文件夹, 分类保存所有文章图片。下载成功,结果显示控制台。 项目分析 1、如何找到真正访问的地址,多网页请求? 滑动鼠标,观察网站,右键F12 。鼠标滚轮滑动加载新内容。如图: 点开随机网页 , 点开Request URL ,观察网址的规律。 https:/ /bh.sb/page /1/ https ://bh.sb/page/ 2/ https:/ /bh.sb/page /3/ https ://bh.sb/page/ 4/ 观察到,每增加一页page/{}/自增加1,用{}代替变换的变量,再用for循环遍历这网址,实现多个网址请求。 2. 反爬处理 1)获取正常的 http请求头,并在requests请求时,设置这些常规的http请求头。 2)使用 fake_useragent ,产生随机的UserAgent进行访问。 涉及的库和网站 1、网址如下: https: //www.doutula.com/photo/list/?page={} 2、涉及的库:requests、lxml、fake_useragent、time、os 3、软件:PyCharm

如何让你在众多二手车中挑中满意的?python帮你实现(附源码)

家住魔仙堡 提交于 2020-08-20 07:08:50
前言 老司机带你去看车,网上的几千条的二手车数据,只需几十行代码,就可以统统获取,保存数据到我们本地电脑上 知识点: 1.python基础知识 2.函数 3.requests库 4.xpath适合零基础的同学 环境: windows + pycharm + python3 爬虫流程: 1.目标网址 2. 发送请求,获取响应 3. 解析网页 提取数据 4. 保存数据 加企鹅群695185429即可免费获取,资料全在群文件里。资料可以领取包括不限于Python实战演练、PDF电子文档、面试集锦、学习资料等 步骤: 1.导入工具 import io import sys import requests # pip install requests from lxml import etree # pip 2.获取汽车详情页面的url,解析网站 def get_detail_urls(url): # 目标网址 # url = 'https://www.guazi.com/cs/buy/o3/' # 发送请求,获取响应 resp = requests.get(url,headers= headers) text = resp.content.decode( ' utf-8 ' ) # 解析网页 html = etree.HTML(text) ul = html.xpath( ' //ul[

2020-08-09 爬虫心得《第一篇》

拥有回忆 提交于 2020-08-20 06:48:19
爬虫心得《第一篇》 一、 爬虫介绍 二、爬虫步骤 三、案列《以南京出租房举例》 1.爬虫环境 2.爬虫网站 分析详情网站 分析主网站 3.数据库操作 4.python代码解释 测试过程中出错处理 5.效果展示 6.源代码展示 一、 爬虫介绍 爬虫是一种自动获取网页内容的程序,是搜索引擎的重要组成部分。网络爬虫为搜索引擎从万维网下载网页。一般分为传统爬虫和聚焦爬虫 二、爬虫步骤 分析网页结构 请求网页数据链接 解析网页和数据元素 数据清洗和可视化分析 保存数据 三、案列《以南京出租房举例》 1.爬虫环境 python python下载链接 pycharm pycharm下载链接 mysql mysql下载链接 2.爬虫网站 网站链接 主页面 详情页 分析详情网站 需求分析 我们需要抓取它的房源、租期、入住、价格、面积、朝向、楼层、电梯、车位、维护 解析网页 #可以使用 lxml、BeautifulSoup 列如: dom = etree . HTML ( resp ) soup = BeautifulSoup ( resp , 'html.parser' ) 定位元素 #可以使用 xpath、re、BeautifulSoup 我这里使用的BeautifulSoup进行定位的 : price = soup . find ( 'div' , class_ = "content_

记录一次 Arthas 使用

谁都会走 提交于 2020-08-19 22:56:38
【Arthas 官方社区正在举行征文活动,参加即有奖品拿~ 点击投稿 】 前言 疫情期间,在家办公,每天都是 007,感觉自己已经升级为熊猫特工了,心累,身体疲惫!!! 今天终于有时间休息一下,然后记录一下在家办公期间 Arthas 的简单使用。 下载安装 方式一: 推荐使用 IDEA 插件下载 Cloud Toolkit 来使用 Arthas Cloud Toolkit 是阿里云发布的免费本地 IDE 插件,帮助开发者更高效地开发、测试、诊断并部署应用。通过插件,可以将本地应用一键部署到任意服务器,甚至云端(ECS、EDAS、ACK、ACR 和 小程序云等);并且还内置了 Arthas 诊断、Dubbo工具、Terminal 终端、文件上传、函数计算 和 MySQL 执行器等工具。不仅仅有 IntelliJ IDEA 主流版本,还有 Eclipse、Pycharm、Maven 等其他版本。 方式二: 直接下载 启动:java -jar arthas-boot.jar 这里需要重点说明一下:必须使用和目标进程相同的用户,否则启动不成功。 问题背景 本人前天刚上线一个任务。由于某产品手误,误操作了线上数据,要求帮忙把数据删除了。 这尼玛的真坑啊,明显是坑老子。 还好有先见之明,没次做任务的时候多多少少都会写几个后门工具( 不是为了删库跑路,而是这些后门在特定情况下真能应急使用