Cant create venv

8 views
Skip to first unread message

Kean Dumba

unread,
Jul 28, 2019, 10:57:40 AM7/28/19
to Django users
Hi,

I was writing some code in sublime text for my django app.
and my python session suspended after migrate. now i'm not able to run django or venv,
the error below is what i receive.

keans-air:project ProductionEnv$ python3 -m venv project

dyld: Library not loaded: @executable_path/../.Python

  Referenced from: /usr/local/bin/python3

  Reason: image not found

Trace/BPT trap: 5


Is this issue familiar to anyone, please can you let me know what it is and how to fix?

n.b. unfortunately, the web resources returned on google search did not resolve.


thanks,


K


Juhana Jauhiainen

unread,
Jul 28, 2019, 1:41:53 PM7/28/19
to django...@googlegroups.com
Hi,

I had the same error when a virtual environment was active and resolved it by deactivating it and creating a new virtual environment.
Not sure what was the cause but I suspect it had something to do with updating to MacOS Mojave.

-Juhana


--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/f407b115-ecc7-4557-b3b2-b12e47c009be%40googlegroups.com.

Kean

unread,
Jul 28, 2019, 1:46:36 PM7/28/19
to django...@googlegroups.com
Hi Juhana,

Thanks for your guidence. 
Someone recommended I use Brew to uninstall Django and pipenv, then re-installed them
this fixed it, glad to have working again.

Best wishes,

-K


Franck Tchouanga

unread,
Jul 28, 2019, 2:09:09 PM7/28/19
to django...@googlegroups.com
try to create another project through the command line and then copy and paste your past work to the presently created project.


Kean

unread,
Jul 28, 2019, 2:11:32 PM7/28/19
to django...@googlegroups.com
Hi Franck,

Thanks, this is the best way to salvage project, will do.

Best wishes,

K

Gaddafi adamu

unread,
Jul 28, 2019, 3:19:09 PM7/28/19
to Django users
hi why don't you start using pycharm it does of this automatically the also have the community edition which is 100% free
Reply all
Reply to author
Forward
0 new messages