pycharm注意事项和常用操作

这个电脑的python,这里面是有包的

image-20221219005909084

这里面是没包的:

image-20221219005939582

python续行符是:\ 一般用在超长字符串中

有时下载包失败是因为pip版本过高或者过低

在命令提示符中输入:

#查看pip版本
pip show pip
#升级pip
python -m pip install --upgrade pip
#降级pip,本来是21.3.1
python -m pip install pip==20.2.4

网速太慢也会导致下载失败:

使用以下命令,让它的延迟检测时间变长

pip --default-timeout=1000 install -U 模块名

例:
pip --default-timeout=1000 install -U matplotlib

下载一些外部库时可能会比较的慢,可以使用下述方法:

清华大学镜像网站:会极大地加快下载速度!!

pip install 包名 -i https://pypi.tuna.tsinghua.edu.cn/simple

例:pip install gensim -i https://pypi.tuna.tsinghua.edu.cn/simple

pip install jieba -i https://pypi.tuna.tsinghua.edu.cn/simple

pip install sklearn -i https://pypi.tuna.tsinghua.edu.cn/simple

pip install gensim -i https://pypi.tuna.tsinghua.edu.cn/simple

pip install torch -i https://pypi.tuna.tsinghua.edu.cn/simple

pip install json -i https://pypi.tuna.tsinghua.edu.cn/simple

pip install nltk -i https://pypi.tuna.tsinghua.edu.cn/simple

pip install simhash -i https://pypi.tuna.tsinghua.edu.cn/simple

pip install xgboost -i https://pypi.tuna.tsinghua.edu.cn/simple

选择USTC镜像安装:

pip install stanfordcorenlp -i http://pypi.mirrors.ustc.edu.cn/simple/ --trusted-host pypi.mirrors.ustc.edu.cn

此处可以修改文件夹颜色:

image-20220121175230202

取消高亮显示,下划线波浪线:

image-20220121180959064

设置自己的代码模板:

image-20220121181054617

取消两次shift出全局搜索的设置方法:

pycharm版本/idea版本:汉化版
英文版的在全局搜索处输入registry
汉化版输入 注册!!!
两者效果一样,只是看版本不同选择输入内容不同,registry=注册
找到 ide.suppress.double.click.handler,√即可,然后close
ps:汉化版有的汉化,有的没有汉化

选中之后,Ctrl+R就是替换的意思:

image-20220123140333165

Ctrl+F:搜索代码

venv文件夹是创建了虚拟环境时才会有

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 打赏
    打赏
  • 1
    评论

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

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

打赏作者

鱼骨编程

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

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

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

打赏作者

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

抵扣说明:

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

余额充值