简体   繁体   English

Python 虚拟环境 - 狡猾的文件?

[英]Python Virtual Environment - Dodgy Files?

I'm new to Python and a little paranoid since malware scares a few weeks ago.我是 Python 的新手,自几周前恶意软件恐慌以来我有点偏执。

I created a project and configured a python interpreter by making a new virtual environment, which worked fine.我创建了一个项目并通过创建一个新的虚拟环境配置了一个 python 解释器,效果很好。 The virtual environment shows in the file directory on the left of a Pycharm window in red, which I assume is because I haven't activated it.虚拟环境在文件目录左边显示一个 Pycharm window 红色,我猜是因为我没有激活它。 I now want to know, are the files in the venv Directory normal (there are many.exe files I can't find a reference to online)?我现在想知道,venv目录下的文件是否正常(有很多.exe文件我在网上找不到参考)?

Many thanks for the help in advance!非常感谢您的提前帮助!

venv中的文件

venv 2中的文件

venv 3中的文件

I tried googling what files I should find in a venv but didn't find anything too useful.我试着用谷歌搜索我应该在 venv 中找到哪些文件,但没有找到任何有用的东西。 I would be grateful for reassurance/help.我将不胜感激。

if you install all python futures in these ways are safe:如果您以这些方式安装所有 python futures 是安全的:

  1. PIP3 install Python from the command prompt PIP3 从命令提示符PIP3 install Python

  2. Install Vscode and after that from extensions安装Vscode ,然后从扩展中安装

  3. Install a complete anaconda package from that site to be free from all libraries in the future.从该站点安装完整的anaconda package 以便将来从所有库中解脱出来。

and as I saw your Sc,当我看到你的 Sc 时,

all those files are necessary to run python and virtual environments.所有这些文件都是运行 python 和虚拟环境所必需的。

But there is a point: Don't try to make several virtual environments , because in the future you will be confused between them , and also your python version will be set on each environment differently !但有一点:不要尝试制作多个虚拟环境,因为将来您会混淆它们,而且您的 python 版本将在每个环境中设置不同

notice: if you are a beginner, try to work on VS CODE .注意:如果您是初学者,请尝试使用 VS CODE because it is very helpful and easy.因为它非常有用且简单。

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

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