Aim: Build projectoxford into raspberrypi3 - https://channel9.msdn.com/Blogs/jsturtevant/Setting-up-Project-Oxford-for-Python-on-Windows
At 2:11 of the video, for windows, the command used to create the virtual environment is:
c:\Python3.5\python.exe -m venv env
However, I could not find the python.exe file in raspbian??? No idea this is why; I can only find the python3.5 file with alot of other files. A quick search for python.exe in python3.5 of my raspberry pi3 does not give any results.
A search online have given this solution for Mac:
$ python3.5 -m venv .env
Qn: Can I use this command in replace of c:\Python3.5\python.exe -m venv env ? Would they both give the same results? If not, what should I use instead?
Latest addition: Running the following command give the error:
pi@raspberrypi:~/happy-image-tester-django $ source env/bin/pip install -r requirements.txt
from: can't read /var/mail/pip
bash: env/bin/pip: line 10: syntax error near unexpected token `('
bash: env/bin/pip: line 10: ` sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])'
Django module unfound:
pi@raspberrypi:~/happy-image-tester-django $ source env/bin/activate
(env) pi@raspberrypi:~/happy-image-tester-django $ python manage.py runserver
Traceback (most recent call last):
File "manage.py", line 16, in <module>
from django.core.management import execute_from_command_line
ImportError: No module named 'django'
(env) pi@raspberrypi:~/happy-image-tester-django $ python -c "from distutils.sysconfig import get_python_lib; print get_python_lib()"
File "<string>", line 1
from distutils.sysconfig import get_python_lib; print get_python_lib()
^
SyntaxError: invalid syntax