[英]How do I properly setup Visual Studio to use already installed Python and Packages
I have added a custom environment:我添加了一个自定义环境:
and set PYTHONPATH to the site-packages that pip installs its packages:并将 PYTHONPATH 设置为 pip 安装其软件包的站点软件包:
Yet... the interactive interpreter does not find my packages already installed:然而......交互式解释器没有找到我已经安装的软件包:
Of course it works fine in a terminal:当然,它在终端中工作正常:
What am I missing?我错过了什么?
I think you need to refer to the tutorial of Installing packages and managing Python environments(Python in VS) and download and install pip package manager
(if you didn't download it, you would not be able to search PyPI and installed packages) in Visual Studio.我觉得你需要参考安装包和管理Python环境(VS中的Python)教程,下载并安装
pip package manager
(如果你没有下载,你将无法搜索到PyPI和安装的包)视觉工作室。 Then search inside the Search box( Search PyPI and installed packages
) to download and install the related packages.然后在搜索框内搜索(
Search PyPI and installed packages
)以下载并安装相关的包。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.