{"id":248,"date":"2018-11-11T23:55:12","date_gmt":"2018-11-11T14:55:12","guid":{"rendered":"https:\/\/ahnbk.com\/?p=248"},"modified":"2019-02-06T00:22:48","modified_gmt":"2019-02-05T15:22:48","slug":"ignore-installed-package-when-using-pip","status":"publish","type":"post","link":"https:\/\/ahnbk.com\/?p=248","title":{"rendered":"Ignore installed package when using pip"},"content":{"rendered":"\n<p>If you have an error when you install python package using pip like this,<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>Cannot uninstall '~~~'. It is a distutils installed project and thus we cannot accurately determine which files belong to it which would lead to only a partial uninstall.<\/code><\/pre>\n\n\n\n<p>You can solve this problem by adding this option:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>--ignore-installed<\/code><\/pre>\n\n\n\n<p>For example,<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>$ sudo pip install &lt;package-name-to-install> --ignore-installed &lt;package-name-get-error><\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>If you have an error when you install python package using pip like this, You can solve this problem by adding this option: For example,<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"advanced_seo_description":"","jetpack_seo_html_title":"","jetpack_seo_noindex":false,"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"footnotes":"","_jetpack_memberships_contains_paid_content":false},"categories":[59],"tags":[27,18],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p2wXSW-40","jetpack-related-posts":[],"jetpack_likes_enabled":true,"_links":{"self":[{"href":"https:\/\/ahnbk.com\/index.php?rest_route=\/wp\/v2\/posts\/248"}],"collection":[{"href":"https:\/\/ahnbk.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/ahnbk.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/ahnbk.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/ahnbk.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=248"}],"version-history":[{"count":1,"href":"https:\/\/ahnbk.com\/index.php?rest_route=\/wp\/v2\/posts\/248\/revisions"}],"predecessor-version":[{"id":249,"href":"https:\/\/ahnbk.com\/index.php?rest_route=\/wp\/v2\/posts\/248\/revisions\/249"}],"wp:attachment":[{"href":"https:\/\/ahnbk.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=248"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ahnbk.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=248"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ahnbk.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=248"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}