{"id":2649,"date":"2022-08-30T15:26:37","date_gmt":"2022-08-30T15:26:37","guid":{"rendered":"https:\/\/unknownerror.org\/index.php\/2014\/02\/04\/importing-a-specific-module-thats-not-part-of-my-current-python-2-x-version-collection-of-common-programming-errors\/"},"modified":"2022-08-30T15:26:37","modified_gmt":"2022-08-30T15:26:37","slug":"importing-a-specific-module-thats-not-part-of-my-current-python-2-x-version-collection-of-common-programming-errors","status":"publish","type":"post","link":"https:\/\/unknownerror.org\/index.php\/2022\/08\/30\/importing-a-specific-module-thats-not-part-of-my-current-python-2-x-version-collection-of-common-programming-errors\/","title":{"rendered":"Importing a specific module thats not part of my current Python 2.X version-Collection of common programming errors"},"content":{"rendered":"<p>My webhost where our website is runs Python 2.4 &amp; the website uses the SQLite3 python module (which is only part of Python 2.5 &amp; up). This means that I cant use the module SQLite3 because its not part of Python 2.4.<\/p>\n<p>Is there a way for me to upload the python SQLite3 module myself &amp; just import\/refernce that in my script? Do you know how I would do this?<\/p>\n<p>Usually I would just install Python25 on my webhost home directory, but this webhost wont allow me to do this.<\/p>\n<p>Is there any way I can just upload &amp; import a specific module &#8211; coming from c++ it seems this must be possible right? Because in C++ I spend my whole life writting libraries &amp; just importing specific parts of them &amp; importing specific classes of a namespace &amp; etc.<\/p>\n<ol>\n<li>\n<p>This very much depends about how much control your webhost gives you about the Python environment. For normal shared hosting, the runtime Python environment is fixed.<\/p>\n<\/li>\n<\/ol>\n<p id=\"rop\"><small>Originally posted 2014-02-04 12:12:33. <\/small><\/p>","protected":false},"excerpt":{"rendered":"<p>My webhost where our website is runs Python 2.4 &amp; the website uses the SQLite3 python module (which is only part of Python 2.5 &amp; up). This means that I cant use the module SQLite3 because its not part of Python 2.4. Is there a way for me to upload the python SQLite3 module myself [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-2649","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/2649","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/comments?post=2649"}],"version-history":[{"count":0,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/2649\/revisions"}],"wp:attachment":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/media?parent=2649"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/categories?post=2649"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/tags?post=2649"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}