当前位置:网站首页>Anacona环境太多??jupyter中如何查看自己当前在哪个环境
Anacona环境太多??jupyter中如何查看自己当前在哪个环境
2022-07-20 10:33:00 【人工智能有点】
如何通过sys查看当前使用的虚拟环境是哪个
import sys
通过sys.path
print(sys.path)
['D:\\CodeField\\Python\\BaDou\\task01', 'E:\\Anaconda3\\envs\\nlp\\python310.zip', 'E:\\Anaconda3\\envs\\nlp\\DLLs', 'E:\\Anaconda3\\envs\\nlp\\lib', 'E:\\Anaconda3\\envs\\nlp', '', 'E:\\Anaconda3\\envs\\nlp\\lib\\site-packages', 'E:\\Anaconda3\\envs\\nlp\\lib\\site-packages\\win32', 'E:\\Anaconda3\\envs\\nlp\\lib\\site-packages\\win32\\lib', 'E:\\Anaconda3\\envs\\nlp\\lib\\site-packages\\Pythonwin']
for i in sys.path:
print(i)
D:\CodeField\Python\BaDou\task01
E:\Anaconda3\envs\nlp\python310.zip
E:\Anaconda3\envs\nlp\DLLs
E:\Anaconda3\envs\nlp\lib
E:\Anaconda3\envs\nlp
E:\Anaconda3\envs\nlp\lib\site-packages
E:\Anaconda3\envs\nlp\lib\site-packages\win32
E:\Anaconda3\envs\nlp\lib\site-packages\win32\lib
E:\Anaconda3\envs\nlp\lib\site-packages\Pythonwin
通过sys.executable
print("ok")
print(sys.executable)
ok
E:\Anaconda3\envs\nlp\python.exe
边栏推荐
- 第一章第十一节:循环语句while
- 服务器的性能监控
- [problem handled] - helm prompt kubernetes configuration file is group readable
- 基于二维声子晶体的体声波谐振器仿真分析
- Section 1 of Chapter 2: detailed explanation of basic data types
- Redis command line client
- WPS2019 所有宏被禁,用启用宏要付费,如何免费使用
- 让你事半功倍的JS utils工具函数
- 第一章第九节:最简单的用户交互
- Le point d'interrogation est en place! Yu Jingchuan 2013 Best think "China Space Station", stars of the Sea to navigate!...
猜你喜欢
工控安全PLC固件逆向一
[jenkins]-流水线循环输出text parameter中的每一行
字节跳动确认将自研芯片:仅供内部使用;马斯克:我已将大脑上传云端;Go 语言产品负责人离职|极客头条
Redis set type
Ankerui motor monitoring scheme low voltage motor circuit and feeder distribution circuit power energy monitoring
[the problem has been solved] - Jenkins traditional packaging and delivery process optimization
ogg 抽取数据延时大
有什麼好玩的網頁小遊戲網站推薦麼?
换装MG黑色标识 名爵将推新产品序列
Circular linked list of leetcode simple problem
随机推荐
[jenkins]-流水线循环输出text parameter中的每一行
Section 4 of Chapter 1: pychar installation
Custom persistence layer framework myormframework (III) - framework implementation
【二叉树】删除给定值的叶子节点
I/o reuse: select poll epoll
GBase 8s创建和使用SPL的时候,如何进行异常处理?
[the problem has been solved] - Jenkins login exsi host without secret
换装MG黑色标识 名爵将推新产品序列
Implementation of form control adaptation (adaptive form) layout in WinForm_ By C code
Redis list type
Node uninstall
Custom persistence layer framework myormframework (II) - Framework Design
Chapter 1, section 6: Variables
Redis set type
有什麼好玩的網頁小遊戲網站推薦麼?
MySQL 8.0 如何根据trx_id 找出整个事务的语句
笔记。。。。
Redis sortset type
Industrial control safety PLC firmware reverse I
这11款chrome神器,用起来爽到爆