简体   繁体   English

Python Visual Studio Code 中的库

[英]Python Libraries In Visual Studio Code

I recently did a factory reset on my pc, I installed python and visual studio code, installed some libraries and when I tried to use them visual studio code didn't found those libraries and also, sometimes visual studio code notifies me that I don't have installed pylint but when I click on install it says that there is no Pip installer in the selected environment.我最近在我的电脑上恢复了出厂设置,我安装了 python 和 visual studio code,安装了一些库,当我尝试使用它们时 visual studio code 没有找到这些库,而且有时 visual studio code 通知我我没有没有安装 pylint,但是当我点击安装时,它说在所选环境中没有 Pip 安装程序。 I added the python folder and the scripts folder to path and I've searched for the same error I have everywhere and nothing seemed to work.我将 python 文件夹和 scripts 文件夹添加到路径中,并且搜索了我在任何地方遇到的相同错误,但似乎没有任何效果。 I don't know what to do.我不知道该怎么办。

Okay so the problem was not related mainly to visual studio code, I had one program installed called inkscape that installs python in another path, visual studio code detected that path before the path of where I had python installed.好的,所以问题主要与 visual studio code 无关,我安装了一个名为 inkscape 的程序,它在另一个路径中安装了 python,visual studio code 在我安装 python 的路径之前检测到该路径。 The solution was to uninstall inkscape if someone has a similar problem, I guess I could tell inkscape to not install python or tell visual studio code to not search on another paths but when I tried to do so it didn't work so the easiest solution was uninstalling Inkscape.如果有人遇到类似问题,解决方案是卸载 inkscape,我想我可以告诉 inkscape 不要安装 python 或告诉 visual studio code 不要在其他路径上搜索但是当我尝试这样做时它不起作用所以最简单的解决方案正在卸载 Inkscape。 I also appreciate the help of @JillCheng to isolate the source of the error.我也感谢@JillCheng 帮助我找出错误的来源。

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

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