简体   繁体   English

go如何通过并查看库源代码

[英]how go through and see the library source code

hello friends i code django and python in pycharm for a company.i have 2 project in one of them i can see the source code of django and django rest framework with "command + mose over" and in another one it doesnt work with django and other libraries except my code and python source code. hello friends i code django and python in pycharm for a company.i have 2 project in one of them i can see the source code of django and django rest framework with "command + mose over" and in another one it doesnt work with django and除了我的代码和 python 源代码之外的其他库。 i mean i can see the source of os in "import os " but i cant see and go through the for example "from rest_framework import authentication".... the senior tell me maybe the place of the env file....I do not know what to do?我的意思是我可以在“import os”中看到 os 的来源,但我看不到 go 通过例如“from rest_framework import authentication”......前辈告诉我可能是env文件的位置......我不知道要做什么? can anyone help me?谁能帮我? this is the location of my "venv" and "bime" is the name of the project place of env and project这是我的“venv”的位置,“bime”是环境和项目的项目名称

when i want to see my code it is link to source and i can use command to go there like bellow image as you see it has "_" and it is active to move me to the code enter image description here but when i want to see the django and other package code it is not active to move me in the code like bellow enter image description here i know i can see the other package code in.venv/libe/site-package but i want straight way with less time当我想查看我的代码时,它是指向源代码的链接,我可以使用 go 的命令,如下图所示,因为您看到它有“_”,它可以将我移动到代码,在此处输入图像描述,但是当我想请参阅 django 和其他 package 代码它无法在下面的代码中移动我,在此处输入图像描述我知道我可以看到其他 ZEFE90A8E604A7C840E88D03A67F6B7Site-v 包代码,但我想要更少/免费的代码。

Make sure you have the correct Python Interpreter set, it should be set in Pycharm settings and should point to your virtual environment where you have these packages installed.确保你有正确的 Python 解释器集,它应该在 Pycharm 设置中设置,并且应该指向你安装了这些包的虚拟环境。

You can find out more about interpreters in Pycharm here https://www.jetbrains.com/help/pycharm/configuring-python-interpreter.html#add_new_project_interpreter您可以在https://www.jetbrains.com/help/pycharm/configuring-python-interpreter.html#add_new_project_interpreter

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM