{"id":2281,"date":"2011-12-06T14:17:57","date_gmt":"2011-12-06T19:17:57","guid":{"rendered":"http:\/\/blogs.terrorware.com\/geoff\/?p=2281"},"modified":"2011-12-06T14:17:57","modified_gmt":"2011-12-06T19:17:57","slug":"installing-numpy-into-a-virtualenv","status":"publish","type":"post","link":"https:\/\/blogs.terrorware.com\/geoff\/2011\/12\/06\/installing-numpy-into-a-virtualenv\/","title":{"rendered":"Installing numpy into a virtualenv"},"content":{"rendered":"<p>I ran into some problems installing numpy in a virtualenv on Ubuntu 10.10. \u00a0I&#8217;m not sure what the root cause of the problem was, but my environment is a little weird in that I have a number of different python versions installed and virtualenvs using different versuons of python. \u00a0The setup for numpy wasn&#8217;t finding global environment configuration variables from the call to <em>sysconfig.get_config_vars<\/em>. \u00a0I ended up fixing my issues by copying the global <em>Makefile<\/em> and <em>pyconfig.h<\/em> into the virtualenv:<\/p>\n<pre>$ mkdir -p \/home\/ghing\/.virtualenvs\/foodgenius-analytics\/local\/lib\/python2.7\/config\/\r\n$ cp \/usr\/lib\/python2.7\/config\/Makefile \/home\/ghing\/.virtualenvs\/foodgenius-analytics\/local\/lib\/python2.7\/config\/\r\n$ mkdir -p \/home\/ghing\/.virtualenvs\/foodgenius-analytics\/local\/include\/python2.7\/\r\n$ cp \/usr\/include\/python2.7\/pyconfig.h \/home\/ghing\/.virtualenvs\/foodgenius-analytics\/local\/include\/python2.7\/<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>I ran into some problems installing numpy in a virtualenv on Ubuntu 10.10. \u00a0I&#8217;m not sure what the root cause of the problem was, but my environment is a little weird in that I have a number of different python versions installed and virtualenvs using different versuons of python. \u00a0The setup for numpy wasn&#8217;t finding&hellip; <a class=\"more-link\" href=\"https:\/\/blogs.terrorware.com\/geoff\/2011\/12\/06\/installing-numpy-into-a-virtualenv\/\">Continue reading <span class=\"screen-reader-text\">Installing numpy into a virtualenv<\/span><\/a><\/p>\n","protected":false},"author":3,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"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,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":false,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2}},"categories":[5],"tags":[20616,724,21287,20615],"class_list":["post-2281","post","type-post","status-publish","format-standard","hentry","category-howto","tag-numpy","tag-python","tag-howto","tag-virtualenv","entry"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p4wnIz-AN","_links":{"self":[{"href":"https:\/\/blogs.terrorware.com\/geoff\/wp-json\/wp\/v2\/posts\/2281","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blogs.terrorware.com\/geoff\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blogs.terrorware.com\/geoff\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blogs.terrorware.com\/geoff\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/blogs.terrorware.com\/geoff\/wp-json\/wp\/v2\/comments?post=2281"}],"version-history":[{"count":1,"href":"https:\/\/blogs.terrorware.com\/geoff\/wp-json\/wp\/v2\/posts\/2281\/revisions"}],"predecessor-version":[{"id":2282,"href":"https:\/\/blogs.terrorware.com\/geoff\/wp-json\/wp\/v2\/posts\/2281\/revisions\/2282"}],"wp:attachment":[{"href":"https:\/\/blogs.terrorware.com\/geoff\/wp-json\/wp\/v2\/media?parent=2281"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blogs.terrorware.com\/geoff\/wp-json\/wp\/v2\/categories?post=2281"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blogs.terrorware.com\/geoff\/wp-json\/wp\/v2\/tags?post=2281"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}