pip

卧槽,又一款Python神器

若如初见. 提交于 2021-01-05 14:02:32
今日推文说明 二条: 高级的数据分析,长啥样? 三条: 清洗数据,我惯用这 7 步! 四条:一款高颜值的词云包让我拍案叫绝 ↑ 关注 + 星标 , 后台回复【 大礼包 】送你Python自学大礼 写Python代码最头疼的两件事是什么?我总结了两点 1、Windows 平台安装第三方包经常失败的问题,还记得第一次安装mysql依赖包时的那个场景吗?怎么都装不上。 2、虚拟环境切换的问题,如果我们同时在一台电脑上开发多个项目,每个项目独立一个虚拟环境是非常必要的,但是在不同项目之间切来切去也是个麻烦。 这两个问题Anoconda可以救你。 Anaconda 是什么? Anaconda 是一个可用于科学计算的 Python 发行版,支持 Linux、Mac、Windows系统,内置了常用的科学计算包。它解决了官方 Python 的两大痛点。 一句话总结就是它是一个比Python官方更牛逼的安装包 第一: 提供了包管理功能,Windows 平台安装第三方包经常失败的场景得以解决, 第二: 提供环境管理的功能,功能类似 Virtualenv,解决了多版本Python并存、切换的问题。 下载 Anaconda 直接在官网下载安装包, 选择 Python3.8 的安装包进行下载,下载完成后直接安装,安装过程选择默认配置即可,大约需要1.8G的磁盘空间。 conda 是 Anaconda

卧槽,又一款Python神器

人走茶凉 提交于 2021-01-05 14:02:18
写Python代码最头疼的两件事是什么?我总结了两点 1、Windows 平台安装第三方包经常失败的问题,还记得第一次安装mysql依赖包时的那个场景吗?怎么都装不上。 2、虚拟环境切换的问题,如果我们同时在一台电脑上开发多个项目,每个项目独立一个虚拟环境是非常必要的,但是在不同项目之间切来切去也是个麻烦。 这两个问题Anoconda可以救你。 Anaconda 是什么? Anaconda 是一个可用于科学计算的 Python 发行版,支持 Linux、Mac、Windows系统,内置了常用的科学计算包。它解决了官方 Python 的两大痛点。 一句话总结就是它是一个比Python官方更牛逼的安装包 第一: 提供了包管理功能,Windows 平台安装第三方包经常失败的场景得以解决, 第二: 提供环境管理的功能,功能类似 Virtualenv,解决了多版本Python并存、切换的问题。 下载 Anaconda 直接在官网下载安装包, 选择 Python3.8 的安装包进行下载,下载完成后直接安装,安装过程选择默认配置即可,大约需要1.8G的磁盘空间。 conda 是 Anaconda 下用于包管理和环境管理的工具,功能上类似 pip 和 vitualenv 的组合。安装成功后 conda 会默认加入到环境变量中,因此可直接在命令行窗口运行命令 conda conda 的环境管理与

Python | Python学习之mysql交互详解

好久不见. 提交于 2021-01-05 12:02:02
前言 最近在学习scrapy redis,在复习redis的同时打算把mysql和mongodb也复习一下,本篇为mysql篇,实例比较简单,学习sql还是要动手实操记的比较牢。 安装与启动 安装:sudo apt-get install mysql-server 查看服务:ps ajx | grep mysql 停止服务:sudo service mysql stop 开启服务:sudo service mysql start 重启服务:sudo service mysql restart 链接数据库:mysql -uroot -p后输入密码 查看版本:select version(); 常见数据库语句 查看数据库:show database; 创建数据库:create database 库名 [charset = UTF8]; 查看建库语句:show create database 库名; 使用数据库:use 库名; 删除数据库:drop 库名; 常见数据表语句 查看表:show table; 查看表结构:desc 表名; 创建表: CREATE TABLE table_name( column1 datatype contrai, column2 datatype, column3 datatype, ..... columnN datatype, PRIMARY KEY

Can't install Scrapy on PC regarding multiple steps

删除回忆录丶 提交于 2021-01-05 11:10:52
问题 I am trying to install scrapy on PC but keep getting error messages. I tried to install Microsoft Visual Studio and other types of things, but NOTHING works :( src/twisted/internet/iocpreactor/iocpsupport/iocpsupport.c(2229): warning C4047: '=': '__pyx_t_11iocpsupport_HANDLE' differs in levels of indirection from 'HANDLE' src/twisted/internet/iocpreactor/iocpsupport/iocpsupport.c(2377): warning C4022: 'CreateIoCompletionPort': pointer mismatch for actual parameter 1 src/twisted/internet

ModuleNotFoundError: No module named 'rest_framework'

别说谁变了你拦得住时间么 提交于 2021-01-05 09:15:07
问题 I'm trying to follow a tutorial on DRF, but when I'm about to run "migrate" for the database, i get ModuleNotFoundError: No module named 'rest_framework'. As PyCharm hints, the same also applies to django_summernote and djoser I have there. I know there are some threads like this, but nothing from those seems to help - the Python console DOES recognize these modules, and they are added through INSTALLED_APPS INSTALLED_APPS = [ 'django.contrib.admin', 'django.contrib.auth', 'django.contrib

Pytorch won't install in PyCharm on MacOS

 ̄綄美尐妖づ 提交于 2021-01-05 09:11:37
问题 I'm new to the MacOS and I have recently downloaded PyCharm on it. I was able to successfully install some packages like numpy, matplotlib, sympy, etc. However, Pytorch won't get installed; not through PyCharm nor through the Terminal. These are the commands I tried in the Terminal (other than attempting to install them directly from PyCharm): pip install torch pip install torch torchvision torchaudio I could post the error messages but some are quite lengthy :( I'm using Python 3.9

Pytorch won't install in PyCharm on MacOS

拜拜、爱过 提交于 2021-01-05 09:11:08
问题 I'm new to the MacOS and I have recently downloaded PyCharm on it. I was able to successfully install some packages like numpy, matplotlib, sympy, etc. However, Pytorch won't get installed; not through PyCharm nor through the Terminal. These are the commands I tried in the Terminal (other than attempting to install them directly from PyCharm): pip install torch pip install torch torchvision torchaudio I could post the error messages but some are quite lengthy :( I'm using Python 3.9

Pytorch won't install in PyCharm on MacOS

半城伤御伤魂 提交于 2021-01-05 09:10:17
问题 I'm new to the MacOS and I have recently downloaded PyCharm on it. I was able to successfully install some packages like numpy, matplotlib, sympy, etc. However, Pytorch won't get installed; not through PyCharm nor through the Terminal. These are the commands I tried in the Terminal (other than attempting to install them directly from PyCharm): pip install torch pip install torch torchvision torchaudio I could post the error messages but some are quite lengthy :( I'm using Python 3.9

基于python3环境下搭建Robot Framework 自动化测试框架(一)

[亡魂溺海] 提交于 2021-01-05 08:45:48
大家都知道,Robot Framework 是基于python2 环境 的一套自动化测试工具,据说python 2 到2020年不维护,现在用python 3 的环境搭建Robot Framework 1.下载python 3 地址 https://www.python.org/downloads/ 2.配置环境变量 在环境变量中加入python 和script 的安装地址 3.查看python 是否安装成功 在cmd中输入python 4. 安装 requests 直接用命令 pip install requests 5.安装 robotframework 直接用命令 pip install robotframework 6.安装 wxPython 直接用命令 pip install wxPython 7.安装 pywin32 直接用命令 pip install pywin32 8.安装 pygments 直接用命令 pip install pygments 9.安装界面工具 ride 直接用命令 pip install robotframework-ride 注意,我最后一步报错了,版本不兼容问题,但是ride 还是可以正常打开,先使用看看 10.在script 文件夹下找到 ride.py文件,点击打开ride,ride打开如下图 以下是安装包及版本信息 来源:

linux 下安装python2.7.13

痴心易碎 提交于 2021-01-05 07:54:48
1.下载所必要的依赖包 yum - y install python - devel openssl openssl - devel gcc sqlite sqlite - devel mysql - devel libxml2 - devel libxslt - devel [ root@cdh1 20191018 ] # ll * gz - rwxrwxrwx 1 root root 389668 Oct 18 14 : 55 distribute - 0.6 . 10 .tar.gz - rwxrwxrwx 1 root root 1246072 Apr 20 2018 pip - 10.0 . 1 .tar.gz - rwxrwxrwx 1 root root 17076672 Dec 18 2016 Python - 2.7 . 13 .tgz - rwxrwxrwx 1 root root 796957 Apr 24 2016 setuptools - 1.4 . 2 .tar.gz --gz包请自动解压 2.安装python2.7.13 cd / BIG_DATA / EDW / ZYXF_EDW / PYTHON_APP / EDW_ONLINE / 20191018 / Python - 2.7 . 13 . / configure -- prefix=/usr