簡體   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除了我的代碼和 python 源代碼之外的其他庫。 我的意思是我可以在“import os”中看到 os 的來源,但我看不到 go 通過例如“from rest_framework import authentication”......前輩告訴我可能是env文件的位置......我不知道要做什么? 誰能幫我? 這是我的“venv”的位置,“bime”是環境和項目的項目名稱

當我想查看我的代碼時,它是指向源代碼的鏈接,我可以使用 go 的命令,如下圖所示,因為您看到它有“_”,它可以將我移動到代碼,在此處輸入圖像描述,但是當我想請參閱 django 和其他 package 代碼它無法在下面的代碼中移動我,在此處輸入圖像描述我知道我可以看到其他 ZEFE90A8E604A7C840E88D03A67F6B7Site-v 包代碼,但我想要更少/免費的代碼。

確保你有正確的 Python 解釋器集,它應該在 Pycharm 設置中設置,並且應該指向你安裝了這些包的虛擬環境。

您可以在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