{"id":934070,"date":"2024-12-26T18:28:27","date_gmt":"2024-12-26T10:28:27","guid":{"rendered":"https:\/\/docs.pingcode.com\/ask\/ask-ask\/934070.html"},"modified":"2024-12-26T18:28:30","modified_gmt":"2024-12-26T10:28:30","slug":"cygwin%e5%a6%82%e4%bd%95%e5%ae%89%e8%a3%85python","status":"publish","type":"post","link":"https:\/\/docs.pingcode.com\/ask\/934070.html","title":{"rendered":"cygwin\u5982\u4f55\u5b89\u88c5python"},"content":{"rendered":"<p style=\"text-align:center;\" ><img decoding=\"async\" src=\"https:\/\/cdn-kb.worktile.com\/kb\/wp-content\/uploads\/2024\/04\/25071243\/07a7f0e7-90b9-4bb0-af12-c3bdddbe0fa6.webp\" alt=\"cygwin\u5982\u4f55\u5b89\u88c5python\" \/><\/p>\n<p><p> <strong>Cygwin\u5b89\u88c5Python\u7684\u6b65\u9aa4\u4e3b\u8981\u5305\u62ec\uff1a\u4e0b\u8f7dCygwin\u5b89\u88c5\u7a0b\u5e8f\u3001\u9009\u62e9Python\u5305\u3001\u8fd0\u884c\u5b89\u88c5\u7a0b\u5e8f\u3001\u914d\u7f6e\u73af\u5883\u53d8\u91cf\u3002<\/strong>\u5176\u4e2d\uff0c\u9009\u62e9Python\u5305\u662f\u5173\u952e\u6b65\u9aa4\uff0c\u786e\u4fdd\u5b89\u88c5\u6240\u9700\u7684Python\u7248\u672c\u53ca\u5176\u76f8\u5173\u5de5\u5177\u3002\u4e0b\u9762\u662f\u8be6\u7ec6\u7684\u5b89\u88c5\u6b65\u9aa4\u548c\u6ce8\u610f\u4e8b\u9879\u3002<\/p>\n<\/p>\n<p><p>\u4e00\u3001\u4e0b\u8f7d\u5e76\u5b89\u88c5Cygwin  <\/p>\n<\/p>\n<p><p>Cygwin\u662f\u4e00\u4e2a\u63d0\u4f9bLinux\u4eff\u771f\u73af\u5883\u7684Windows\u8f6f\u4ef6\uff0c\u5728\u5b89\u88c5Python\u4e4b\u524d\uff0c\u9700\u8981\u5148\u5b89\u88c5Cygwin\u3002\u9996\u5148\uff0c\u8bbf\u95eeCygwin\u7684\u5b98\u65b9\u7f51\u7ad9\uff0c\u4e0b\u8f7d\u6700\u65b0\u7248\u672c\u7684Cygwin\u5b89\u88c5\u7a0b\u5e8f\uff08setup-x86_64.exe\uff09\u3002\u8fd0\u884c\u4e0b\u8f7d\u7684\u5b89\u88c5\u7a0b\u5e8f\uff0c\u6309\u7167\u5411\u5bfc\u63d0\u793a\u8fdb\u884c\u5b89\u88c5\u3002\u5728\u9009\u62e9\u5b89\u88c5\u76ee\u5f55\u65f6\uff0c\u5efa\u8bae\u9009\u62e9\u4e00\u4e2a\u5408\u9002\u7684\u4f4d\u7f6e\uff0c\u786e\u4fdd\u78c1\u76d8\u7a7a\u95f4\u5145\u8db3\u3002\u5b89\u88c5\u8fc7\u7a0b\u4e2d\u9700\u8981\u9009\u62e9\u4e00\u4e2a\u5408\u9002\u7684\u955c\u50cf\u7ad9\u70b9\uff0c\u5efa\u8bae\u9009\u62e9\u7f51\u7edc\u901f\u5ea6\u8f83\u5feb\u7684\u955c\u50cf\u4ee5\u63d0\u9ad8\u4e0b\u8f7d\u901f\u5ea6\u3002<\/p>\n<\/p>\n<p><p>\u4e8c\u3001\u9009\u62e9\u5e76\u5b89\u88c5Python\u5305  <\/p>\n<\/p>\n<ol>\n<li>\n<p><strong>\u9009\u62e9Python\u7248\u672c<\/strong><br \/>\u5728Cygwin\u7684\u5b89\u88c5\u7a0b\u5e8f\u4e2d\uff0c\u8fdb\u5165\u5230\u201c\u9009\u62e9\u5305\u201d\u7684\u6b65\u9aa4\u3002\u8fd9\u91cc\u9700\u8981\u9009\u62e9Python\u5305\uff0c\u901a\u5e38\u60c5\u51b5\u4e0b\uff0cPython\u5305\u5728\u201cPython\u201d\u7c7b\u522b\u4e2d\u3002\u5728\u5305\u5217\u8868\u4e2d\uff0c\u53ef\u4ee5\u627e\u5230\u4e0d\u540c\u7248\u672c\u7684Python\uff0c\u6bd4\u5982python2\u548cpython3\u3002\u6839\u636e\u9700\u8981\u9009\u62e9\u9002\u5408\u7684\u7248\u672c\uff0c\u70b9\u51fb\u5bf9\u5e94\u7684\u201cSkip\u201d\u5b57\u6837\uff0c\u786e\u4fdd\u5c06\u5176\u8bbe\u7f6e\u4e3a\u8981\u5b89\u88c5\u7684\u7248\u672c\u3002\u5efa\u8bae\u9009\u62e9Python 3\uff0c\u56e0\u4e3aPython 2\u5df2\u7ecf\u505c\u6b62\u66f4\u65b0\u3002<\/p>\n<\/p>\n<\/li>\n<li>\n<p><strong>\u9009\u62e9\u76f8\u5173\u5de5\u5177\u548c\u5e93<\/strong><br \/>\u9664\u4e86Python\u672c\u8eab\uff0c\u8fd8\u53ef\u4ee5\u9009\u62e9\u4e00\u4e9b\u5e38\u7528\u7684Python\u5de5\u5177\u548c\u5e93\u5305\uff0c\u6bd4\u5982pip\uff08Python\u5305\u7ba1\u7406\u5de5\u5177\uff09\u3001setuptools\uff08Python\u6253\u5305\u5de5\u5177\uff09\u3001\u4ee5\u53ca\u5176\u4ed6\u53ef\u80fd\u9700\u8981\u7684\u6269\u5c55\u5e93\u3002\u8fd9\u4e9b\u5de5\u5177\u53ef\u4ee5\u5e2e\u52a9\u540e\u7eed\u5b89\u88c5Python\u5305\u548c\u7ba1\u7406\u9879\u76ee\u4f9d\u8d56\u3002<\/p>\n<\/p>\n<\/li>\n<\/ol>\n<p><p>\u4e09\u3001\u8fd0\u884c\u5b89\u88c5\u7a0b\u5e8f  <\/p>\n<\/p>\n<ol>\n<li>\n<p><strong>\u4e0b\u8f7d\u548c\u5b89\u88c5\u5305<\/strong><br \/>\u5b8c\u6210\u5305\u7684\u9009\u62e9\u540e\uff0cCygwin\u5b89\u88c5\u7a0b\u5e8f\u4f1a\u81ea\u52a8\u4e0b\u8f7d\u5e76\u5b89\u88c5\u9009\u4e2d\u7684\u5305\u3002\u8fd9\u4e2a\u8fc7\u7a0b\u53ef\u80fd\u9700\u8981\u4e00\u4e9b\u65f6\u95f4\uff0c\u5177\u4f53\u53d6\u51b3\u4e8e\u7f51\u7edc\u901f\u5ea6\u548c\u9009\u62e9\u7684\u5305\u6570\u91cf\u3002\u5728\u4e0b\u8f7d\u548c\u5b89\u88c5\u8fc7\u7a0b\u4e2d\uff0c\u8bf7\u786e\u4fdd\u7f51\u7edc\u8fde\u63a5\u6b63\u5e38\uff0c\u4ee5\u907f\u514d\u4e2d\u9014\u51fa\u9519\u3002<\/p>\n<\/p>\n<\/li>\n<li>\n<p><strong>\u914d\u7f6e\u73af\u5883\u53d8\u91cf<\/strong><br \/>Cygwin\u5b89\u88c5\u5b8c\u6210\u540e\uff0c\u53ef\u80fd\u9700\u8981\u624b\u52a8\u914d\u7f6e\u73af\u5883\u53d8\u91cf\uff0c\u4ee5\u4fbf\u5728\u547d\u4ee4\u884c\u4e2d\u76f4\u63a5\u4f7f\u7528Python\u3002\u6253\u5f00Windows\u7684\u201c\u7cfb\u7edf\u5c5e\u6027\u201d -&gt; \u201c\u9ad8\u7ea7\u7cfb\u7edf\u8bbe\u7f6e\u201d -&gt; \u201c\u73af\u5883\u53d8\u91cf\u201d\uff0c\u5728\u201c\u7cfb\u7edf\u53d8\u91cf\u201d\u4e2d\u627e\u5230\u201cPath\u201d\u53d8\u91cf\uff0c\u6dfb\u52a0Cygwin\u7684bin\u76ee\u5f55\u8def\u5f84\uff08\u4f8b\u5982\uff1aC:\\cygwin64\\bin\uff09\u3002\u8fd9\u6837\u53ef\u4ee5\u5728\u547d\u4ee4\u884c\u76f4\u63a5\u8f93\u5165<code>python<\/code>\u6765\u542f\u52a8Python\u3002<\/p>\n<\/p>\n<\/li>\n<\/ol>\n<p><p>\u56db\u3001\u9a8c\u8bc1\u5b89\u88c5  <\/p>\n<\/p>\n<ol>\n<li>\n<p><strong>\u68c0\u67e5Python\u7248\u672c<\/strong><br \/>\u6253\u5f00Cygwin\u7ec8\u7aef\uff0c\u8f93\u5165<code>python --version<\/code>\u6216<code>python3 --version<\/code>\uff0c\u53ef\u4ee5\u67e5\u770b\u5230\u5f53\u524d\u5b89\u88c5\u7684Python\u7248\u672c\u4fe1\u606f\u3002\u5982\u679c\u663e\u793a\u6b63\u786e\u7684\u7248\u672c\u53f7\uff0c\u8bf4\u660ePython\u5b89\u88c5\u6210\u529f\u3002<\/p>\n<\/p>\n<\/li>\n<li>\n<p><strong>\u6d4b\u8bd5Python\u73af\u5883<\/strong><br \/>\u53ef\u4ee5\u5728Cygwin\u7ec8\u7aef\u4e2d\u8f93\u5165<code>python<\/code>\u6216<code>python3<\/code>\u8fdb\u5165Python\u4ea4\u4e92\u73af\u5883\uff0c\u8f93\u5165\u4e00\u4e9b\u7b80\u5355\u7684Python\u4ee3\u7801\u8fdb\u884c\u6d4b\u8bd5\u3002\u4f8b\u5982\uff0c\u8f93\u5165<code>print(&quot;Hello, World!&quot;)<\/code>\uff0c\u5982\u679c\u8f93\u51fa\u6b63\u786e\uff0c\u8bf4\u660ePython\u73af\u5883\u914d\u7f6e\u6b63\u5e38\u3002<\/p>\n<\/p>\n<\/li>\n<\/ol>\n<p><p>\u4e94\u3001\u5b89\u88c5\u548c\u7ba1\u7406Python\u5305  <\/p>\n<\/p>\n<ol>\n<li>\n<p><strong>\u4f7f\u7528pip\u5b89\u88c5\u5305<\/strong><br \/>\u5982\u679c\u5728\u5b89\u88c5\u8fc7\u7a0b\u4e2d\u9009\u62e9\u4e86pip\uff0c\u53ef\u4ee5\u76f4\u63a5\u5728Cygwin\u7ec8\u7aef\u4e2d\u4f7f\u7528pip\u6765\u5b89\u88c5Python\u5305\u3002\u4f8b\u5982\uff0c\u8f93\u5165<code>pip install numpy<\/code>\u53ef\u4ee5\u5b89\u88c5NumPy\u5e93\u3002pip\u4f1a\u81ea\u52a8\u5904\u7406\u5305\u7684\u4f9d\u8d56\u5173\u7cfb\uff0c\u5e76\u4ecePython\u5b98\u65b9\u5305\u7ba1\u7406\u5e93PyPI\u4e0b\u8f7d\u548c\u5b89\u88c5\u5305\u3002<\/p>\n<\/p>\n<\/li>\n<li>\n<p><strong>\u7ba1\u7406Python\u865a\u62df\u73af\u5883<\/strong><br \/>\u4e3a\u4e86\u907f\u514d\u4e0d\u540c\u9879\u76ee\u4e4b\u95f4\u7684\u5305\u4f9d\u8d56\u51b2\u7a81\uff0c\u53ef\u4ee5\u4f7f\u7528Python\u7684\u865a\u62df\u73af\u5883\u5de5\u5177\u3002\u53ef\u4ee5\u4f7f\u7528<code>python -m venv myenv<\/code>\u547d\u4ee4\u521b\u5efa\u4e00\u4e2a\u65b0\u7684\u865a\u62df\u73af\u5883\uff0c\u7136\u540e\u4f7f\u7528<code>source myenv\/bin\/activate<\/code>\u6fc0\u6d3b\u73af\u5883\u3002\u5728\u865a\u62df\u73af\u5883\u4e2d\uff0c\u5b89\u88c5\u7684\u5305\u53ea\u5bf9\u5f53\u524d\u73af\u5883\u6709\u6548\uff0c\u4e0d\u4f1a\u5f71\u54cd\u5168\u5c40Python\u73af\u5883\u3002<\/p>\n<\/p>\n<\/li>\n<\/ol>\n<p><p>\u516d\u3001\u89e3\u51b3\u5e38\u89c1\u95ee\u9898  <\/p>\n<\/p>\n<ol>\n<li>\n<p><strong>\u5b89\u88c5\u5931\u8d25\u6216\u65e0\u6cd5\u542f\u52a8Python<\/strong><br \/>\u5982\u679c\u5728\u5b89\u88c5\u8fc7\u7a0b\u4e2d\u51fa\u73b0\u95ee\u9898\u6216\u8005\u65e0\u6cd5\u542f\u52a8Python\uff0c\u9996\u5148\u68c0\u67e5\u7f51\u7edc\u8fde\u63a5\u548c\u955c\u50cf\u7ad9\u70b9\u7684\u53ef\u7528\u6027\uff0c\u5c1d\u8bd5\u91cd\u65b0\u9009\u62e9\u5176\u4ed6\u955c\u50cf\u7ad9\u70b9\u8fdb\u884c\u5b89\u88c5\u3002\u68c0\u67e5Cygwin\u5b89\u88c5\u76ee\u5f55\u4e0b\u7684\u6587\u4ef6\u5b8c\u6574\u6027\uff0c\u786e\u4fddPython\u76f8\u5173\u6587\u4ef6\u5df2\u7ecf\u6b63\u786e\u5b89\u88c5\u3002\u5982\u679c\u95ee\u9898\u4ecd\u7136\u5b58\u5728\uff0c\u53ef\u4ee5\u5c1d\u8bd5\u5378\u8f7dCygwin\u5e76\u91cd\u65b0\u5b89\u88c5\u3002<\/p>\n<\/p>\n<\/li>\n<li>\n<p><strong>Python\u5305\u5b89\u88c5\u5931\u8d25<\/strong><br \/>\u5982\u679c\u4f7f\u7528pip\u5b89\u88c5Python\u5305\u5931\u8d25\uff0c\u9996\u5148\u786e\u4fddpip\u7248\u672c\u662f\u6700\u65b0\u7684\uff0c\u53ef\u4ee5\u901a\u8fc7<code>pip install --upgrade pip<\/code>\u547d\u4ee4\u5347\u7ea7pip\u3002\u68c0\u67e5\u7f51\u7edc\u8fde\u63a5\u662f\u5426\u6b63\u5e38\uff0c\u786e\u4fdd\u80fd\u591f\u8bbf\u95eePyPI\u3002\u5982\u679c\u5b89\u88c5\u7279\u5b9a\u5305\u65f6\u9047\u5230\u95ee\u9898\uff0c\u53ef\u4ee5\u67e5\u770b\u9519\u8bef\u4fe1\u606f\uff0c\u5e76\u6839\u636e\u63d0\u793a\u68c0\u67e5\u76f8\u5173\u4f9d\u8d56\u6216\u73af\u5883\u914d\u7f6e\u3002<\/p>\n<\/p>\n<\/li>\n<li>\n<p><strong>\u8def\u5f84\u548c\u73af\u5883\u53d8\u91cf\u95ee\u9898<\/strong><br \/>\u5982\u679c\u5728Cygwin\u7ec8\u7aef\u4e2d\u65e0\u6cd5\u8bc6\u522b<code>python<\/code>\u547d\u4ee4\uff0c\u53ef\u80fd\u662f\u8def\u5f84\u6216\u73af\u5883\u53d8\u91cf\u914d\u7f6e\u95ee\u9898\u3002\u68c0\u67e5Cygwin\u5b89\u88c5\u76ee\u5f55\u4e0b\u7684bin\u8def\u5f84\u662f\u5426\u6dfb\u52a0\u5230\u7cfb\u7edf\u7684Path\u53d8\u91cf\u4e2d\u3002\u786e\u4fddCygwin\u7ec8\u7aef\u7684\u5f53\u524d\u8def\u5f84\u6b63\u786e\uff0c\u53ef\u4ee5\u901a\u8fc7<code>echo $PATH<\/code>\u547d\u4ee4\u67e5\u770b\u5f53\u524d\u7684\u8def\u5f84\u8bbe\u7f6e\u3002<\/p>\n<\/p>\n<\/li>\n<\/ol>\n<p><p>\u4e03\u3001\u4f7f\u7528Cygwin\u4e2d\u7684Python\u8fdb\u884c\u5f00\u53d1  <\/p>\n<\/p>\n<ol>\n<li>\n<p><strong>\u96c6\u6210\u5f00\u53d1\u73af\u5883\uff08IDE\uff09\u7684\u9009\u62e9<\/strong><br \/>\u5728Cygwin\u4e2d\u5b89\u88c5Python\u540e\uff0c\u53ef\u4ee5\u9009\u62e9\u5408\u9002\u7684IDE\u8fdb\u884c\u5f00\u53d1\u3002\u5e38\u7528\u7684Python IDE\u5305\u62ecPyCharm\u3001VSCode\u3001Eclipse+PyDev\u7b49\u3002\u8fd9\u4e9bIDE\u652f\u6301Python\u7684\u8bed\u6cd5\u9ad8\u4eae\u3001\u4ee3\u7801\u8865\u5168\u3001\u8c03\u8bd5\u7b49\u529f\u80fd\uff0c\u53ef\u4ee5\u63d0\u9ad8\u5f00\u53d1\u6548\u7387\u3002\u6839\u636e\u4e2a\u4eba\u4e60\u60ef\u548c\u9879\u76ee\u9700\u6c42\u9009\u62e9\u5408\u9002\u7684IDE\uff0c\u5e76\u5728IDE\u4e2d\u914d\u7f6eCygwin\u7684Python\u89e3\u91ca\u5668\u8def\u5f84\u3002<\/p>\n<\/p>\n<\/li>\n<li>\n<p><strong><a href=\"https:\/\/docs.pingcode.com\/blog\/project-management\/23316.html\" target=\"_blank\">\u9879\u76ee\u7ba1\u7406<\/a>\u548c\u7248\u672c\u63a7\u5236<\/strong><br \/>\u5728Cygwin\u4e2d\u8fdb\u884cPython\u9879\u76ee\u5f00\u53d1\u65f6\uff0c\u53ef\u4ee5\u4f7f\u7528Git\u8fdb\u884c\u7248\u672c\u63a7\u5236\u3002\u786e\u4fddCygwin\u4e2d\u5df2\u7ecf\u5b89\u88c5\u4e86Git\uff0c\u53ef\u4ee5\u901a\u8fc7<code>git --version<\/code>\u547d\u4ee4\u68c0\u67e5Git\u7248\u672c\u3002\u4f7f\u7528Git\u521d\u59cb\u5316\u9879\u76ee\u4ed3\u5e93\uff0c\u8fdb\u884c\u4ee3\u7801\u63d0\u4ea4\u3001\u5206\u652f\u7ba1\u7406\u7b49\u64cd\u4f5c\uff0c\u65b9\u4fbf\u56e2\u961f\u534f\u4f5c\u548c\u4ee3\u7801\u7ba1\u7406\u3002<\/p>\n<\/p>\n<\/li>\n<li>\n<p><strong>\u4f7f\u7528Cygwin\u5de5\u5177\u8fdb\u884c\u5f00\u53d1<\/strong><br \/>Cygwin\u63d0\u4f9b\u4e86\u4e30\u5bcc\u7684Linux\u5de5\u5177\u548c\u547d\u4ee4\uff0c\u53ef\u4ee5\u7ed3\u5408\u8fd9\u4e9b\u5de5\u5177\u8fdb\u884cPython\u5f00\u53d1\u3002\u4f8b\u5982\uff0c\u4f7f\u7528grep\u8fdb\u884c\u6587\u672c\u641c\u7d22\uff0c\u4f7f\u7528sed\u8fdb\u884c\u6587\u672c\u66ff\u6362\uff0c\u4f7f\u7528awk\u8fdb\u884c\u6570\u636e\u5904\u7406\u7b49\u3002\u8fd9\u4e9b\u5de5\u5177\u53ef\u4ee5\u4e0ePython\u811a\u672c\u7ed3\u5408\u4f7f\u7528\uff0c\u63d0\u9ad8\u5f00\u53d1\u6548\u7387\u548c\u81ea\u52a8\u5316\u6c34\u5e73\u3002<\/p>\n<\/p>\n<\/li>\n<\/ol>\n<p><p>\u516b\u3001\u603b\u7ed3  <\/p>\n<\/p>\n<p><p>\u901a\u8fc7\u4ee5\u4e0a\u6b65\u9aa4\uff0c\u53ef\u4ee5\u5728Cygwin\u4e2d\u6210\u529f\u5b89\u88c5\u548c\u914d\u7f6ePython\u73af\u5883\uff0c\u5e76\u7ed3\u5408Cygwin\u63d0\u4f9b\u7684\u5de5\u5177\u8fdb\u884cPython\u5f00\u53d1\u3002\u5728\u5b89\u88c5\u8fc7\u7a0b\u4e2d\uff0c\u9700\u8981\u6ce8\u610f\u9009\u62e9\u6b63\u786e\u7684Python\u7248\u672c\u548c\u76f8\u5173\u5de5\u5177\uff0c\u914d\u7f6e\u597d\u73af\u5883\u53d8\u91cf\u3002\u4f7f\u7528pip\u7ba1\u7406Python\u5305\uff0c\u5229\u7528\u865a\u62df\u73af\u5883\u5de5\u5177\u9694\u79bb\u9879\u76ee\u73af\u5883\u3002\u9009\u62e9\u5408\u9002\u7684IDE\u548c\u7248\u672c\u63a7\u5236\u5de5\u5177\uff0c\u7ed3\u5408Cygwin\u5de5\u5177\u63d0\u9ad8\u5f00\u53d1\u6548\u7387\u3002\u901a\u8fc7\u8fd9\u4e9b\u6b65\u9aa4\uff0c\u53ef\u4ee5\u5728Windows\u73af\u5883\u4e0b\u5b9e\u73b0\u7c7b\u4f3cLinux\u7684Python\u5f00\u53d1\u4f53\u9a8c\u3002<\/p>\n<\/p>\n<h2><strong>\u76f8\u5173\u95ee\u7b54FAQs\uff1a<\/strong><\/h2>\n<p> <strong>Cygwin\u4e2d\u5b89\u88c5Python\u9700\u8981\u54ea\u4e9b\u6b65\u9aa4\uff1f<\/strong><br \/>\u5728Cygwin\u4e2d\u5b89\u88c5Python\u7684\u6b65\u9aa4\u901a\u5e38\u5305\u62ec\uff1a\u9996\u5148\uff0c\u786e\u4fdd\u4f60\u7684Cygwin\u5b89\u88c5\u662f\u6700\u65b0\u7684\u3002\u7136\u540e\uff0c\u901a\u8fc7Cygwin\u7684\u5b89\u88c5\u7a0b\u5e8f\uff0c\u9009\u62e9Python\u5305\u8fdb\u884c\u5b89\u88c5\u3002\u5177\u4f53\u6765\u8bf4\uff0c\u6253\u5f00Cygwin\u5b89\u88c5\u7a0b\u5e8f\uff0c\u9009\u62e9\u201cPackage\u201d\u9009\u9879\uff0c\u641c\u7d22\u201cpython\u201d\u5e76\u9009\u62e9\u60f3\u8981\u5b89\u88c5\u7684\u7248\u672c\uff0c\u6700\u540e\u70b9\u51fb\u201c\u4e0b\u4e00\u6b65\u201d\u4ee5\u5b8c\u6210\u5b89\u88c5\u3002<\/p>\n<p><strong>Cygwin\u5b89\u88c5\u7684Python\u7248\u672c\u6709\u54ea\u4e9b\uff1f<\/strong><br \/>Cygwin\u652f\u6301\u591a\u4e2aPython\u7248\u672c\uff0c\u5305\u62ecPython 2.x\u548cPython 3.x\u7cfb\u5217\u3002\u7528\u6237\u53ef\u4ee5\u6839\u636e\u81ea\u5df1\u7684\u9700\u6c42\u9009\u62e9\u5408\u9002\u7684\u7248\u672c\u3002\u5728Cygwin\u7684\u5b89\u88c5\u7a0b\u5e8f\u4e2d\uff0c\u53ef\u4ee5\u901a\u8fc7\u641c\u7d22\u201cpython\u201d\u6765\u67e5\u770b\u53ef\u7528\u7684\u7248\u672c\u3002<\/p>\n<p><strong>\u5982\u4f55\u5728Cygwin\u4e2d\u9a8c\u8bc1Python\u5b89\u88c5\u662f\u5426\u6210\u529f\uff1f<\/strong><br \/>\u5b89\u88c5\u5b8c\u6210\u540e\uff0c\u53ef\u4ee5\u901a\u8fc7\u5728Cygwin\u7ec8\u7aef\u4e2d\u8f93\u5165<code>python --version<\/code>\u6216<code>python3 --version<\/code>\u6765\u9a8c\u8bc1Python\u662f\u5426\u6210\u529f\u5b89\u88c5\u3002\u5982\u679c\u5b89\u88c5\u6210\u529f\uff0c\u7cfb\u7edf\u5c06\u663e\u793a\u5df2\u5b89\u88c5\u7684Python\u7248\u672c\u53f7\u3002\u5982\u679c\u51fa\u73b0\u9519\u8bef\u6216\u627e\u4e0d\u5230\u547d\u4ee4\uff0c\u53ef\u80fd\u9700\u8981\u68c0\u67e5\u5b89\u88c5\u6b65\u9aa4\u6216\u73af\u5883\u53d8\u91cf\u8bbe\u7f6e\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"Cygwin\u5b89\u88c5Python\u7684\u6b65\u9aa4\u4e3b\u8981\u5305\u62ec\uff1a\u4e0b\u8f7dCygwin\u5b89\u88c5\u7a0b\u5e8f\u3001\u9009\u62e9Python\u5305\u3001\u8fd0\u884c\u5b89\u88c5\u7a0b\u5e8f\u3001\u914d\u7f6e\u73af [&hellip;]","protected":false},"author":3,"featured_media":934076,"comment_status":"closed","ping_status":"","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[37],"tags":[],"acf":[],"_links":{"self":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/934070"}],"collection":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/comments?post=934070"}],"version-history":[{"count":"1","href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/934070\/revisions"}],"predecessor-version":[{"id":934078,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/934070\/revisions\/934078"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media\/934076"}],"wp:attachment":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media?parent=934070"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/categories?post=934070"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/tags?post=934070"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}