Home > Backend Development > Python Tutorial > How to install modules in pycharm

How to install modules in pycharm

尊渡假赌尊渡假赌尊渡假赌
Release: 2023-12-11 09:51:07
Original
2618 people have browsed it

There are two types of pycharm installation modules: "direct method" and "indirect method": 1. Direct method, open pycharm "file-settings-Project:xxx-Project interpeter"; 2. Indirect method, in python Configure Tsinghua Source with pip, then press win R on the computer desktop and type cmd, then type the corresponding code to install the third-party module and add the parameters.

How to install modules in pycharm

#The operating system of this tutorial: Windows 10 system, PyCharm 2023.3 version, Dell G3 computer.

There are two ways to install modules in pycharm:

1. Direct method

  1. Open pycharm

    file----settings ----Project:xxx----Project interpeter

    How to install modules in pycharm

2. Indirect method

  1. Configuring Tsinghua Source with pip in python

    Create a pip directory directly in the user directory, such as: C:\Users\xx\pip. Create a new text document on the desktop, type the following content, save it in INI format, the file is called PIP, as follows

    [global]
    index-url = https://pypi.tuna.tsinghua.edu.cn/simple
    Copy after login

    How to install modules in pycharm

    # Then copy it from the left to the corresponding folder.

    How to install modules in pycharm#Please note: You must first create the pip folder in your personal user folder, and then create the pip.ini file. Do not directly place the pip.ini file in C:\ Users\xx\Under


  2. Install module
  3. Press win R on the computer desktop and type cmd, then type the corresponding code for third-party module installation and add the parameters

    -i https://pypi.tuna.tsinghua.edu.cn/simple
    Copy after login
    How to install modules in pycharm

The above is the detailed content of How to install modules in pycharm. For more information, please follow other related articles on the PHP Chinese website!

source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template