首页
学习
活动
专区
工具
TVP
发布
精选内容/技术社群/优惠产品,尽在小程序
立即前往
您找到你想要的搜索结果了吗?
是的
没有找到

解决修改PyCharm源后添加源信任的问题

问题描述 使用PyCharm内置的包管理修改默认源为豆瓣源后出现报错: “The repository located at pypi.douban.com is not a trusted or secure...host and is being ignored” 解决办法 方法一(临时) 在选择安装包的右侧勾选 option 选项 手动通过命令安装包的时候添加–trust选项: --trusted-host...pip文件夹,再进到里面新建pip.in文件,然后再里面输入内容: [global] timeout = 6000 index-url = http://pypi.douban.com/simple trusted-host...pypi.douban.com/simple [install] use-mirrors = true mirrors = https://pypi.douban.com/simple/ trusted-host...touch pip.conf # 创建一个pip配置文件 写入配置 [global] index-url = https://pypi.douban.com/simple [install] trusted-host

1.4K20

pip安装国内的镜像源_pandas镜像源

2.临时使用某个镜像源: 可以在使用pip的时候在后面加上-i参数,指定pip源 eg: pip install xxx -i http://pypi.douban.com/simple/ –trusted-host...pypi.douban.com #此参数“–trusted-host”表示信任,如果上一个提示不受信任,就使用这个 3.永久使用国内pypi镜像安装 1.Linux: cd ~/.pip #...编辑 vim pip.conf 添加内容: [global] index-url = https://pypi.tuna.tsinghua.edu.cn/simple [install] trusted-host...= https://pypi.tuna.tsinghua.edu.cn # trusted-host 此参数是为了避免麻烦,否则使用的时候可能会提示不受信任 2.Window: 直接在当前用户目录中创建一个名为...= http://mirrors.aliyun.com/pypi/simple/ # trusted-host 此参数是为了避免麻烦,否则使用的时候可能会提示不受信任 4.正常使用pip命令:

4K20
领券