{"id":31,"date":"2012-07-26T19:23:00","date_gmt":"2012-07-26T19:23:00","guid":{"rendered":"http:\/\/www.mirageglobe.com\/wp\/?p=31"},"modified":"2012-07-26T19:23:00","modified_gmt":"2012-07-26T19:23:00","slug":"pip-error-in-python-with-homebrew","status":"publish","type":"post","link":"https:\/\/pages.alldaycity.com\/mirageglobe\/pip-error-in-python-with-homebrew\/","title":{"rendered":"Pip error in Python with Homebrew"},"content":{"rendered":"<div dir=\"ltr\">If you get the following error. Reference to (<a href=\"https:\/\/github.com\/mxcl\/homebrew\/wiki\/Homebrew-and-Python\">https:\/\/github.com\/mxcl\/homebrew\/wiki\/Homebrew-and-Python<\/a>).<\/p>\n<blockquote><p><i>\/usr\/local\/bin\/pip:5: UserWarning: Module pkg_resources was already imported from \/System\/Library\/Frameworks\/Python.framework\/Versions\/2.6\/Extras\/lib\/python\/pkg_resources.pyc, but \/Library\/Python\/2.6\/site-packages is being added to sys.path<\/i><br \/><i>\u00a0 from pkg_resources import load_entry_point<\/i><br \/><i>\/usr\/local\/bin\/pip:5: UserWarning: Module site was already imported from \/System\/Library\/Frameworks\/Python.framework\/Versions\/2.6\/lib\/python2.6\/site.pyc, but \/Library\/Python\/2.6\/site-packages is being added to sys.path<\/i><br \/><i>\u00a0 from pkg_resources import load_entry_point<\/i><br \/><i>Usage: pip COMMAND [OPTIONS]<\/i><br \/><i>pip: error: You must give a command (use &#8220;pip help&#8221; to see a list of commands)<\/i><\/p><\/blockquote>\n<p>go to your bash_profile page<\/p>\n<blockquote><p><i>&gt; echo $PATH<\/i><\/p><\/blockquote>\n<p><span>make sure \/usr\/local\/share\/python is loaded infront of \/usr\/local\/bin.<\/span><br \/><span>You can modify this using by modifying your bash_profile<\/span><\/p>\n<blockquote><p><i>&gt; open -t ~\/.bash_profile<\/i><\/p><\/blockquote>\n<p><span>The export path may be like the following. Note that the python share path is loaded before the local bin. Which is something like below.<\/span><\/p>\n<blockquote><p><i>######<\/i><br \/><i>#this is for brew doctor<\/i><br \/><i>######<\/i><br \/><i><span>export PATH=&#8221;\/usr\/local\/share\/python:\/usr\/local\/bin:$PATH:\/usr\/local\/sbin:\/usr\/local\/Cellar\/ruby\/1.9.3-p194\/bin&#8221;<\/span><span>\u00a0<\/span><\/i><\/p><\/blockquote>\n<div><\/div>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>If you get the following error. Reference to (https:\/\/github.com\/mxcl\/homebrew\/wiki\/Homebrew-and-Python). \/usr\/local\/bin\/pip:5: UserWarning: Module pkg_resources was already imported from \/System\/Library\/Frameworks\/Python.framework\/Versions\/2.6\/Extras\/lib\/python\/pkg_resources.pyc, but \/Library\/Python\/2.6\/site-packages is being added to sys.path\u00a0 from pkg_resources import load_entry_point\/usr\/local\/bin\/pip:5: UserWarning: Module site was already imported from \/System\/Library\/Frameworks\/Python.framework\/Versions\/2.6\/lib\/python2.6\/site.pyc, but \/Library\/Python\/2.6\/site-packages is being added to sys.path\u00a0 from pkg_resources import load_entry_pointUsage: pip COMMAND [OPTIONS]pip: error: You must give [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-31","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/pages.alldaycity.com\/mirageglobe\/wp-json\/wp\/v2\/posts\/31","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/pages.alldaycity.com\/mirageglobe\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/pages.alldaycity.com\/mirageglobe\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/pages.alldaycity.com\/mirageglobe\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/pages.alldaycity.com\/mirageglobe\/wp-json\/wp\/v2\/comments?post=31"}],"version-history":[{"count":0,"href":"https:\/\/pages.alldaycity.com\/mirageglobe\/wp-json\/wp\/v2\/posts\/31\/revisions"}],"wp:attachment":[{"href":"https:\/\/pages.alldaycity.com\/mirageglobe\/wp-json\/wp\/v2\/media?parent=31"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/pages.alldaycity.com\/mirageglobe\/wp-json\/wp\/v2\/categories?post=31"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/pages.alldaycity.com\/mirageglobe\/wp-json\/wp\/v2\/tags?post=31"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}