{"id":1319,"date":"2023-08-28T17:28:19","date_gmt":"2023-08-28T09:28:19","guid":{"rendered":"https:\/\/ext4.cn\/?p=1319"},"modified":"2023-08-28T17:32:15","modified_gmt":"2023-08-28T09:32:15","slug":"pip%e5%ae%89%e8%a3%85%e5%ba%93%e6%8a%a5%e9%94%99-oserror-missing-dependencies-for-socks-support","status":"publish","type":"post","link":"https:\/\/ext4.cn\/?p=1319","title":{"rendered":"pip\u5b89\u88c5\u5e93\u62a5\u9519 OSError: Missing dependencies for SOCKS support"},"content":{"rendered":"\n<p>\u4f7f\u7528pip install\u5b89\u88c5\u5e93\u65f6\u62a5\u9519\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>ERROR: Could not install packages due to an OSError: Missing dependencies for SOCKS support<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\">\u65b9\u6cd51<\/h2>\n\n\n\n<p>\u5b8c\u6574\u62a5\u9519\u4e3a\uff1a<br><\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><div class='fancybox-wrapper lazyload-container-unload' data-fancybox='post-images' href='https:\/\/ext4.cn\/wp-content\/uploads\/2023\/08\/image-18.png'><img class=\"lazyload lazyload-style-2\" src=\"data:image\/svg+xml;base64,PCEtLUFyZ29uTG9hZGluZy0tPgo8c3ZnIHdpZHRoPSIxIiBoZWlnaHQ9IjEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgc3Ryb2tlPSIjZmZmZmZmMDAiPjxnPjwvZz4KPC9zdmc+\"  decoding=\"async\" loading=\"lazy\" width=\"818\" height=\"310\" data-original=\"https:\/\/ext4.cn\/wp-content\/uploads\/2023\/08\/image-18.png\" src=\"data:image\/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsQAAA7EAZUrDhsAAAANSURBVBhXYzh8+PB\/AAffA0nNPuCLAAAAAElFTkSuQmCC\" alt=\"\" class=\"wp-image-1320\"  sizes=\"(max-width: 818px) 100vw, 818px\" \/><\/div><\/figure>\n\n\n\n<ul>\n<li>\u7f3a\u5c11\u4ee3\u7406\u5e93\uff0c\u518d\u4f7f\u7528pip install\u5b89\u88c5pysocks\u5e93\u4e5f\u662f\u5b89\u88c5\u4e0d\u4e0a\u7684\uff0c\u53bbgithub\u4e0a\u9762\u627e\u5230pysocks\u9879\u76ee\u8fde\u63a5\uff0c\u624b\u52a8\u5b89\u88c5<\/li>\n<\/ul>\n\n\n\n<pre class=\"wp-block-code\"><code># \u9879\u76ee\u94fe\u63a5\nhttps:&#47;&#47;github.com\/Anorov\/PySocks\n\n# \u4e0b\u8f7d\u4e0b\u6765\u5e76\u4e14\u89e3\u538b \u7136\u540e\u8fdb\u5165\u76ee\u5f55\ncd Downloads\/PySocks-1.7.0\n\n# \u4f7f\u7528\u7ba1\u7406\u5458\u6743\u9650\u5b89\u88c5\n<mark style=\"background-color:#f75151\" class=\"has-inline-color has-black-color\">\u276f python3 setup.py install<\/mark>\nWarning: 'classifiers' should be a list, got type 'tuple'\nrunning install\nerror: can't create or remove files in install directory\n\nThe following error occurred while trying to add or remove files in the\ninstallation directory:\n\n    &#91;Errno 13] Permission denied: '\/Library\/Python\/3.9\/site-packages\/test-easy-install-56008.write-test'\n\nThe installation directory you specified (via --install-dir, --prefix, or\nthe distutils default setting) was:\n\n    \/Library\/Python\/3.9\/site-packages\/\n\nPerhaps your account does not have write access to this directory?  If the\ninstallation directory is a system-owned directory, you may need to sign in\nas the administrator or \"root\" account.  If you do not have administrative\naccess to this machine, you may wish to choose a different installation\ndirectory, preferably one that is listed in your PYTHONPATH environment\nvariable.\n\nFor information on other options, you may wish to consult the\ndocumentation at:\n\n  https:\/\/setuptools.readthedocs.io\/en\/latest\/deprecated\/easy_install.html\n\nPlease make the appropriate changes for your system and try again.\n\n<mark style=\"background-color:#f75151\" class=\"has-inline-color has-black-color\">\u276f sudo python3 setup.py install<\/mark>\n<mark style=\"background-color:#f75151\" class=\"has-inline-color has-black-color\">Password:<\/mark>\nWarning: 'classifiers' should be a list, got type 'tuple'\nrunning install\nrunning bdist_egg\nrunning egg_info\ncreating PySocks.egg-info\nwriting PySocks.egg-info\/PKG-INFO\nwriting dependency_links to PySocks.egg-info\/dependency_links.txt\nwriting top-level names to PySocks.egg-info\/top_level.txt\nwriting manifest file 'PySocks.egg-info\/SOURCES.txt'\nreading manifest file 'PySocks.egg-info\/SOURCES.txt'\nreading manifest template 'MANIFEST.in'\nadding license file 'LICENSE'\nwriting manifest file 'PySocks.egg-info\/SOURCES.txt'\ninstalling library code to build\/bdist.macosx-10.9-universal2\/egg\nrunning install_lib\nrunning build_py\ncreating build\ncreating build\/lib\ncopying socks.py -> build\/lib\ncopying sockshandler.py -> build\/lib\ncreating build\/bdist.macosx-10.9-universal2\ncreating build\/bdist.macosx-10.9-universal2\/egg\ncopying build\/lib\/sockshandler.py -> build\/bdist.macosx-10.9-universal2\/egg\ncopying build\/lib\/socks.py -> build\/bdist.macosx-10.9-universal2\/egg\nbyte-compiling build\/bdist.macosx-10.9-universal2\/egg\/sockshandler.py to sockshandler.cpython-39.pyc\nbyte-compiling build\/bdist.macosx-10.9-universal2\/egg\/socks.py to socks.cpython-39.pyc\ncreating build\/bdist.macosx-10.9-universal2\/egg\/EGG-INFO\ncopying PySocks.egg-info\/PKG-INFO -> build\/bdist.macosx-10.9-universal2\/egg\/EGG-INFO\ncopying PySocks.egg-info\/SOURCES.txt -> build\/bdist.macosx-10.9-universal2\/egg\/EGG-INFO\ncopying PySocks.egg-info\/dependency_links.txt -> build\/bdist.macosx-10.9-universal2\/egg\/EGG-INFO\ncopying PySocks.egg-info\/top_level.txt -> build\/bdist.macosx-10.9-universal2\/egg\/EGG-INFO\nzip_safe flag not set; analyzing archive contents...\ncreating dist\ncreating 'dist\/PySocks-1.7.0-py3.9.egg' and adding 'build\/bdist.macosx-10.9-universal2\/egg' to it\nremoving 'build\/bdist.macosx-10.9-universal2\/egg' (and everything under it)\nProcessing PySocks-1.7.0-py3.9.egg\nCopying PySocks-1.7.0-py3.9.egg to \/Library\/Python\/3.9\/site-packages\nAdding PySocks 1.7.0 to easy-install.pth file\n\nInstalled \/Library\/Python\/3.9\/site-packages\/PySocks-1.7.0-py3.9.egg\nProcessing dependencies for PySocks==1.7.0\nFinished processing dependencies for PySocks==1.7.0\n\n# \u67e5\u770b\u662f\u5426\u5b89\u88c5\u6210\u529f\npip3 list<\/code><\/pre>\n\n\n\n<figure class=\"wp-block-image size-full\"><div class='fancybox-wrapper lazyload-container-unload' data-fancybox='post-images' href='https:\/\/ext4.cn\/wp-content\/uploads\/2023\/08\/image-19.png'><img class=\"lazyload lazyload-style-2\" src=\"data:image\/svg+xml;base64,PCEtLUFyZ29uTG9hZGluZy0tPgo8c3ZnIHdpZHRoPSIxIiBoZWlnaHQ9IjEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgc3Ryb2tlPSIjZmZmZmZmMDAiPjxnPjwvZz4KPC9zdmc+\"  decoding=\"async\" loading=\"lazy\" width=\"453\" height=\"354\" data-original=\"https:\/\/ext4.cn\/wp-content\/uploads\/2023\/08\/image-19.png\" src=\"data:image\/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsQAAA7EAZUrDhsAAAANSURBVBhXYzh8+PB\/AAffA0nNPuCLAAAAAElFTkSuQmCC\" alt=\"\" class=\"wp-image-1323\"  sizes=\"(max-width: 453px) 100vw, 453px\" \/><\/div><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\">\u65b9\u6cd52<\/h2>\n\n\n\n<pre class=\"wp-block-code\"><code># \u53d6\u6d88\u6240\u6709\u4ee3\u7406\nunset all_proxy &amp;&amp; unset ALL_PROXY\n\n# \u5b89\u88c5\u7f3a\u5931\u7684\u4f9d\u8d56\u9879\npip3 install pysocks\n\n# \u91cd\u7f6e\u4ee3\u7406\nsource ~\/.bashrc\n# zsh\nsource .zshrc<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>\u4f7f\u7528pip install\u5b89\u88c5\u5e93\u65f6\u62a5\u9519\uff1a \u65b9\u6cd51 \u5b8c\u6574\u62a5\u9519\u4e3a\uff1a \u65b9\u6cd52<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[91],"tags":[58],"_links":{"self":[{"href":"https:\/\/ext4.cn\/index.php?rest_route=\/wp\/v2\/posts\/1319"}],"collection":[{"href":"https:\/\/ext4.cn\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/ext4.cn\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/ext4.cn\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/ext4.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1319"}],"version-history":[{"count":9,"href":"https:\/\/ext4.cn\/index.php?rest_route=\/wp\/v2\/posts\/1319\/revisions"}],"predecessor-version":[{"id":1332,"href":"https:\/\/ext4.cn\/index.php?rest_route=\/wp\/v2\/posts\/1319\/revisions\/1332"}],"wp:attachment":[{"href":"https:\/\/ext4.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1319"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ext4.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1319"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ext4.cn\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1319"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}