通过pycharm设置conda国内镜像源
时间: 2023-11-11 13:36:12 浏览: 123
1. 打开PyCharm,点击右上角的“Settings”(或者快捷键:Ctrl+Alt+S)。
2. 在左侧菜单栏中,找到“Project Interpreter”选项卡,点击它。
3. 在右侧区域中,找到“Add”按钮,点击它。
4. 在弹出的窗口中,选择“Conda Environment”选项卡,然后选择你要配置的环境。
5. 在下方的“Interpreter options”中,输入以下命令:-i https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/pytorch/
6. 点击“OK”按钮,等待PyCharm更新环境配置。
现在,你可以在PyCharm中使用conda命令行工具来安装依赖库,它将使用国内镜像源加快下载速度。
相关问题
pycharm信任清华镜像源
根据提供的引用内容,没有提到如何让PyCharm信任清华镜像源。但是,我们可以通过以下步骤在PyCharm中使用清华镜像源:
1. 打开PyCharm,点击菜单栏中的“File” -> “Settings”。
2. 在弹出的窗口中,选择“Project Interpreter”选项卡。
3. 在右侧的窗口中,点击“+”按钮,添加一个新的解释器。
4. 在弹出的窗口中,选择“Conda Environment” -> “Existing environment”,并在“Interpreter”字段中输入conda环境的路径。
5. 在“Interpreter”字段下方,勾选“Make available to all projects”选项。
6. 在“Interpreter”字段右侧的下拉菜单中,选择“Show all…”。
7. 在弹出的窗口中,选择“Add…”按钮,添加一个新的conda源。
8. 在弹出的窗口中,输入清华镜像源的地址:https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free/。
9. 点击“OK”按钮,保存设置。
现在,PyCharm就会使用清华镜像源来下载和安装conda包了。
pycharm通过国内镜像 安装opencv 4.5.3.56
可以通过以下步骤在PyCharm中使用国内镜像安装OpenCV 4.5.3.56:
1. 打开PyCharm,选择File->Settings->Project->Project Interpreter。
2. 在Project Interpreter窗口中,点击右上角的“+”按钮。
3. 在弹出的窗口中,在搜索框中输入“opencv-python”,并点击右侧的Install Package按钮。
4. 在弹出的窗口中,选择一个国内的镜像源,例如清华大学的镜像源(https://pypi.tuna.tsinghua.edu.cn/simple/)。
5. 点击Install按钮开始安装OpenCV 4.5.3.56。
6. 等待安装完成后,可以在PyCharm中使用OpenCV库了。
注意:如果使用的是Anaconda环境,则需要在Anaconda Prompt中使用conda install命令安装OpenCV库,并指定使用国内的镜像源。例如:
conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free/
conda config --set show_channel_urls yes
conda install opencv-python=4.5.3.56
相关推荐
![condarc](https://img-home.csdnimg.cn/images/20210720083646.png)
![condarc](https://img-home.csdnimg.cn/images/20210720083646.png)
![pdf](https://img-home.csdnimg.cn/images/20210720083512.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)