Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8336799
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T04:06:23+00:00 2026-06-09T04:06:23+00:00

UPDATE: NOTE THIS IS ON A WINDOWS MACHINE There are numerous posts on stack

  • 0

UPDATE: NOTE THIS IS ON A WINDOWS MACHINE

There are numerous posts on stack about virtualenv and the differences in pythonpath of an install. In most cases, these users simply forget to activate the env before doing a pip install.

this is NOT my problem

Instead, my problem lies with django when running manage.py runserver. I am trying to migrate a django project that was started before I created a virtualenv. As part of this, I have attempted creating a new django project within an activated virtualenv and simply migrated my old files over.

(VENV) python django-admin.py startproject XYZ

*NOTE: I have already activated the virtualenv AND run the command with “python”, which refers to the python installation within the virutalenv

I then migrate my old files over and run:

python manage.py runserver

At this point the DLL load fails.

Error: DLL load failed: The specified module could not be found.

Running a normal manage.py runserver works, but as this refers to the global python installation, that is not what I want.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-09T04:06:25+00:00Added an answer on June 9, 2026 at 4:06 am

    Binary installers on Windows for Python are not compatible with virtual environments and only install to the default system Python (as listed in the registry).

    Therefore, packages such as database drivers and others like the Python Imaging Library are not compatible with virtual environments.

    I know of three options:

    1. Set up the compiler environment and manually build your modules (not recommended).
    2. Use system Python (easier, and works with pre-built binary Windows packages for Python); and manage your requirements manually.
    3. Manually copy over the required files to your virtual environment.

    I recommend #2 as the easiest of the three.

    You can try and use setuptools (easy_install or pip), but unless you have setup a development environment the packages will not compile and install successfully (the DLLs will not be built); leading to errors like the one you experienced.

    For heroku; you can manually manage your requirements file and add psycopg2 to make sure heroku deploys your application correctly.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I've read a number of posts about this error, but none of the solutions
How can I update some Windows Service Seperated Assemblies without restarting the service? Note:
NOTE: I added my new solution at the UPDATE answer below. I try to
Update: Is there a way to achieve what I'm trying to do in an
Update: I reported this as a bug to Apple and they fixed it! All
UPDATE: I've been playing around with this more, and it seems like tmux's clear-history
Update : This is no longer an issue from C# 6, which has introduced
I have a few JasperReports made and running very fine on a Windows machine.
(Note: this is for MS SQL Server) Say you have a table ABC with
I have this intermittent problem with MySQL 5.1.33 (Community Server) for Windows, where the

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.