【发布时间】:2021-05-25 19:29:20
【问题描述】:
x = 10
print(x)
我收到的信息:
PS H:\VS Code\100 Days of Code\Day16 - OOP> conda activate base
conda : The term 'conda' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
At line:1 char:1
+ ~~~~~
+ CategoryInfo : ObjectNotFound: (conda:String) [], CommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException
Python 3.8.5 (default, Sep 3 2020, 21:29:08) [MSC v.1916 64 bit (AMD64)] :: Anaconda, Inc. on win32
Warning:
not been activated. Libraries may fail to load. To activate this environment
please see https://conda.io/activation
File "<stdin>", line 1, in <module>
NameError: name 'X' is not defined
>>> print(x)
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
NameError: name 'x' is not defined
>>>
【问题讨论】:
-
对你有好处!尝试学习一些编码...看来您确实安装了python,但我不确定它是否与您从虚拟环境中调用它有关。请对警告中提供的链接进行一些研究并更新您的问题,并发布您尝试修复它的方式。
标签: python visual-studio-code anaconda