id: 86625e76322c4d328f95632bf8b7a05d
parent_id: 
item_type: 1
item_id: 33b4bcaf9f5c4550913567935e5201fa
item_updated_time: 1764345579415
title_diff: "[{\"diffs\":[[1,\"Windows 中IDLE选择virtualenv的启动方法 - CSDN博客\"]],\"start1\":0,\"start2\":0,\"length1\":0,\"length2\":39}]"
body_diff: "[{\"diffs\":[[1,\"<html>\\\r\\\n<head>\\\r\\\n  <title>Windows 中IDLE选择virtualenv的启动方法 - CSDN博客</title>\\\r\\\n  <basefont face=\\\"微软雅黑\\\" size=\\\"2\\\" />\\\r\\\n  <meta http-equiv=\\\"Content-Type\\\" content=\\\"text/html;charset=utf-8\\\" />\\\r\\\n  <meta name=\\\"exporter-version\\\" content=\\\"YXBJ Windows/608924 (zh-CN, DDL); Windows/10.0.0 (Win64); EDAMVersion=V2;\\\"/>\\\r\\\n  <style>\\\r\\\n\\tbody, td {\\\r\\\n\\t  font-family: 微软雅黑;\\\r\\\n\\t  font-size: 12pt;\\\r\\\n\\t}\\\r\\\n  </style>\\\r\\\n</head>\\\r\\\n<body>\\\r\\\n<a name=\\\"14419\\\"></a>\\\r\\\n<h1>Windows 中IDLE选择virtualenv的启动方法 - CSDN博客</h1>\\\r\\\n\\\r\\\n<div><span>\\\n  <div>\\\n<div style=\\\"font-size: 16px; display: inline-block; min-width: 100%; position: relative;\\\"><div><div style=\\\"font-size:16px;font-family:&quot;PingFang SC&quot;, &quot;Microsoft YaHei&quot;, SimHei, Arial, SimSun;font-weight:400;box-sizing:border-box;background-color:rgb(245, 246, 247);line-height:24px;\\\"><div style=\\\"font-weight:400;box-sizing:border-box;\\\"><span><div style=\\\"box-shadow:rgba(0, 0, 0, 0.05) 0px 2px 4px 0px;background-color:rgb(255, 255, 255);\\\">\\\n        <h1 style=\\\"font-family:&quot;PingFang SC&quot;, &quot;Microsoft YaHei&quot;, SimHei, Arial, SimSun;margin:0px;box-sizing:border-box;word-break:break-all;word-wrap:break-word;padding:0px 29px;font-weight:700;color:rgb(44, 48, 51);font-size:24px;line-height:38px;\\\">win中IDLE选择virtualenv的启动方法</h1>\\\n        <div style=\\\"margin:0px;font-weight:400;box-sizing:border-box;padding:0px 29px 8px;color:rgb(136, 136, 136);border-bottom:1px solid rgb(229, 229, 229);font-size:14px;line-height:38px;margin-top:5px;\\\">\\\n            <div style=\\\"margin:0px;padding:0px;font-weight:400;box-sizing:border-box;float:left;\\\">\\\n                <span style=\\\"margin:0px;font-weight:400;box-sizing:border-box;padding:2px 6px;border:1px solid rgb(228, 235, 244);font-size:14px;color:rgb(120, 144, 156);margin-right:20px;\\\">\\\n                原创                </span>\\\n                <span style=\\\"margin:0px;padding:0px;font-weight:400;box-sizing:border-box;display:inline-block;color:rgb(187, 187, 187);font-size:14px;\\\">2018年04月08日 16:32:05</span>\\\n            </div>\\\n\\\n            \\\n            <ul style=\\\"margin:0px;padding:0px;font-weight:400;box-sizing:border-box;list-style:none;float:right;margin-top:5px;\\\">\\\n                <li style=\\\"margin:0px;padding:0px;font-weight:400;box-sizing:border-box;list-style:none;float:left;margin-left:30px;line-height:28px;\\\"></li>\\\n                \\\n                \\\n            </ul>\\\n        <span style=\\\"font-weight:400;color:rgb(136, 136, 136);font-size:14px;line-height:38px;height:0px;visibility:hidden;display:block;clear:both;\\\">.</span></div>\\\n        <div style=\\\"margin:0px;font-weight:400;box-sizing:border-box;padding:20px 30px 0px;word-break:break-all;margin-bottom:30px;color:rgb(69, 69, 69);word-wrap:break-word;\\\">\\\n                            <div style=\\\"margin:0px;padding:0px;font-weight:400;box-sizing:border-box;font-family:-apple-system, &quot;SF UI Text&quot;, Arial, &quot;PingFang SC&quot;, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei&quot;, &quot;WenQuanYi Micro Hei&quot;, sans-serif, SimHei, SimSun;\\\">\\\n                        <p style=\\\"padding:0px;box-sizing:border-box;margin:0px 0px 16px;font-weight:400;font-size:16px;color:rgb(79, 79, 79);line-height:26px;text-align:justify;\\\">今天第一次用virtualenv来管理python项目，搭建好virtualenv环境后，在dos窗口中测试没问题，打开idle写好代码后运行发现错了。因为我本以为只要在dos上激活了一个环境，在其它地方使用都会是用激活的这个环境了，于是我又开了一个dos窗口测试发现并不是这样。经过很长时间搜索，在Stack Overflow上get一个解决办法：</p>\\\n\\\n\\\n\\\n<h3 style=\\\"font-family:&quot;PingFang SC&quot;, &quot;Microsoft YaHei&quot;, SimHei, Arial, SimSun;padding:0px;box-sizing:border-box;margin:8px 0px 16px;font-weight:700;color:rgb(79, 79, 79);font-size:22px;line-height:30px;\\\">从dos命令行运行.(virtualenv dir)\\\\Scripts\\\\activate.bat脚本激活环境，然后执行：</h3>\\\n\\\n<pre style=\\\"overflow-x:auto;margin:0px 0px 24px;font-weight:400;box-sizing:border-box;position:relative;overflow-y:hidden;padding:8px 16px 4px 56px;border:none;font-family:Consolas, Inconsolata, Courier, monospace;font-size:14px;line-height:22px;color:rgb(0, 0, 0);background-color:rgb(246, 248, 250);\\\"><code style=\\\"line-height:22px;box-sizing:border-box;font-family:Consolas, Inconsolata, Courier, monospace;padding:0px;color:rgb(0, 0, 0);font-size:14px;display:block;background-color:rgb(246, 248, 250);border-radius:4px;overflow-x:auto;white-space:pre;word-wrap:normal;\\\"><em style=\\\"box-sizing:border-box;position:relative;background-color:rgb(255, 250, 165);color:black;font-style:inherit;font-weight:inherit;-evernote-highlight:true;\\\">python -m idlelib<a style=\\\"cursor:pointer;color:rgb(78, 161, 219);outline:0px;text-decoration:none;font-weight:400;box-sizing:border-box;width:34px;padding:0px;transition:visibility 0.2s 0.5s, opacity 0.2s linear;background-position:0px 0px;display:inline;margin:0px;line-height:0;position:absolute;opacity:0;height:34px;left:-17px;top:-17px;background-repeat:no-repeat;visibility:visible;z-index:2147483644;background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEQAAAAiCAMAAADRYI/HAAABMlBMVEX///////////////8AAAD///////////////////////////////////////////+IiIhvb29sbGzCwb+hoaH5+flwcHBmZmb39/daWlphYWHx8OydnZ1YWFjz8u6JiYmvr63y8e38/Pz6+vqXl5eZmZmuraxiYmJnZ2dtbW1BQUF8fHyamZjt7e3GxsaWlpazs7Gfn59eXl6AgIDg4ODq6uqtra2RkI9OTk7Hx8dlZWVra2vw8PDExMLExMT7+/tqamr///9ZWVlbW1t7e3u1tbXDw8OMjIxpaWnGxcPBwL6zsrDDw8Cwr62Yl5bz8/POzsuRkY+3t7TZ2NWsrKrW1dJfX19oaGhgYGBjY2Ocm5qsq6nOzcp9fX1+fn65ubfHxsS0s7GLiomoqKb4+Pj19fVOGmQaAAAAEHRSTlMAeHLeAGkPEvzSyX6BFXsYo21THAAAAVFJREFUeF7tzLWS40AUheGWLfPA7RaTkZkZhpmZYen9X2E1U97sdrSRq/QnJ/nqkCXOyysoRMPhqBD8HxFIj+REQh6lA1yRkcfl8ljOcIVQs+E7uyZwRLcwdNptZ1jocsS60oBFjd/rqPiz42iMUqY5OxeoICv7cHCXBzg+AthfQUVru/T6TGnz43C7hQrizwLMUnkplQTI+lGhFTebVvXEOmdFDRUkDW6zuPvhlsZExihN7s/i1lWBlYwMfpIAACmeyruTQE82TJVqL3FrcEhVc4NgRWyA01RS+nqxI6jYpfSH9fOXVaV0FxUkNoeDmySA9Akwj6Giz9TLgWHcXjPWRwVZVXKwKKesokKvbJrmQ/HxiVV0V2D5pouX3NTHEb23CaOUsfeeKzhGqWcBsnWFJ0SfvtdR1c6e7hMJr9Caf2vLvxbiAVH8J0SRLGteXn8B3pcq7BY/UaMAAAAASUVORK5CYII=);\\\"></a></em><span style=\\\"margin:0px;padding:0px;font-weight:400;box-sizing:border-box;color:rgb(0, 153, 0);\\\"><em style=\\\"box-sizing:border-box;background-color:rgb(255, 250, 165);color:black;font-style:inherit;font-weight:inherit;-evernote-highlight:true;\\\">.idle</em></span></code><ul style=\\\"position:absolute;margin:0px;font-weight:400;box-sizing:border-box;list-style:none;padding:8px 0px;width:48px;background-color:rgb(238, 240, 244);top:0px;left:0px;text-align:right;\\\"><li style=\\\"font-weight:400;box-sizing:border-box;list-style-type:disc;margin:0px;padding:0px 8px;list-style:none;color:rgb(153, 153, 153);\\\">1</li></ul></pre>                </div>\\\n                                                \\\n                                    </div>\\\n        \\\n    </div></span></div></div></div></div>\\\n</div>\\\n</span>\\\n</div></body></html>\\u0000\"]],\"start1\":0,\"start2\":0,\"length1\":0,\"length2\":6663}]"
metadata_diff: {"new":{"id":"33b4bcaf9f5c4550913567935e5201fa","parent_id":"f67288c3a0be4374b5d532b5dcc3aabc","latitude":"0.00000000","longitude":"0.00000000","altitude":"0.0000","author":"","source_url":"","is_todo":0,"todo_due":0,"todo_completed":0,"source":"joplin-desktop","source_application":"net.cozic.joplin-desktop","application_data":"","order":1764348825817,"markup_language":2,"is_shared":0,"share_id":"","conflict_original_id":"","master_key_id":"","user_data":"","deleted_time":0},"deleted":[]}
encryption_cipher_text: 
encryption_applied: 0
updated_time: 2025-11-28T21:04:02.102Z
created_time: 2025-11-28T21:04:02.102Z
type_: 13