I'm very new to python, and have been trying to deploy a very simple django web app I made (just to practice python/django) but I keep running into a problem.
It seems to be a requirement that I create a virtual environment, but whenever I try (using 'virtualenv venv' at the command line) I get the error:
"The program can't start because VCRUNTIME140.dll is missing from your computer. Try reinstalling the program to fix this problem."
I've tried reinstalling python and re-piping virtualenv but that doesn't seem to work. There were one or two references to this problem online, both of which suggested downloading Virtual C++ redistribute (https://www.microsoft.com/en-us/downloa ... x?id=48145), but that didn't work either.
Anyone have any thoughts on what else I could try? Last note: I'm using the latest python version(3.5.0)
I actually have no idea why it worked. I didn't previously have anaconda, but after trying the other solutions with no success I downloaded anaconda and suddenly it worked.
I hope it's alright if I ask one more question - I'm still trying to get this django app working, but now I'm having trouble with the psycopg2 file. The full error message is below, but in short I can't seem to install it in my virtual environment. I have PostgreSQL installed (and updated my path to point to it), but when I use the command:
Downloading the executable file was a success! ... but then I got a new error at the next step.
I feel like I must be doing something fundamentally wrong. Do you think something like using Python 2 instead of 3 would be more likely to succeed? Would working on a mac significantly improve my chances of success?
More generally, I'd really like to know how to do this kind of thing. Is there a book or something you'ld recommend that might let me better troubleshoot my own problems, or is this the kind of thing you just learn to do with lots of experience (and lots of google searches?)
The website says that it's Py3 compatible, so that shouldn't be an issue.
A lot of fixing these errors is Googling. Almost always, someone else has had the same issue, and there's a fix listed somewhere. With experience, you'll learn to better interpret the errors - what they really mean, what to look for in the logs. For this reason, if you're ever stuck when Google hasn't helped, and you post about your error somewhere, it's important to share the full error, along with the specifics of what you've done and what your system looks like.
As to working on a Mac... I find building, compiling, and installing software under Windows to be a pain. It's easier under Linux ( if you know how to use it, otherwise there'll be a learning curve... ). I treat my Mac like a Linux system, because they share that underlying core, so I personally find working on Macs infinitely easier than on Windows computers. Still, this should be absolutely possible under Windows, so...