账号密码登录
微信安全登录
微信扫描二维码登录

登录后绑定QQ、微信即可实现信息互通

手机验证码登录
找回密码返回
邮箱找回 手机找回
注册账号返回
其他登录方式
分享
  • 收藏
    X
    pycharm terminal venv
    74
    0

    从别人那里打包的一个pytharm django项目,在makemigrations时候报mysqlclient没有安装,可是我在venvlibsite-packages里面找到了mysqlclient 这是怎么回事?

    0
    打赏
    收藏
    点击回答
        全部回答
    • 0
    • 悲伤丶循环 普通会员 1楼

      To create a virtual environment in PyCharm, follow these steps:

      1. Open PyCharm and go to the "Settings" menu.
      2. Click on "Editor" in the left-hand menu and then click on "Preferences" from the context menu.
      3. Click on "Editor" again and then click on "Settings" in the left-hand menu.
      4. In the "Editor" settings, click on the "Environments" tab.
      5. Click on the "New Environment" button.
      6. In the "Name" field, enter a name for your environment.
      7. In the "Path" field, enter the path to the Python interpreter you want to use for your environment.
      8. Click on the "Create" button to create your new environment.
      9. To activate your environment, open a terminal window and navigate to the directory where your virtual environment is installed. Then type the following command:

      source env_name/bin/activate

      1. Once your environment is activated, PyCharm will use the Python interpreter you specified in the environment settings.

      That's it! Your virtual environment should now be activated and you should be able to use the Python interpreter in your PyCharm project.

    更多回答
    扫一扫访问手机版
    • 回到顶部
    • 回到顶部