Reputation: 2505
I use pip installed the uwsgi
package in my local repository project virtualenv (MacBook Pro).
and I use the
$ ./uwsgi --version
2.0.17
in the local repo venv/bin
. it will shows its version.
then I use git push the local repo to the remote repo(CentOS-7.2).
now, I activate the remote_repo's venv
, and cd to the venv/bin
, use:
./uwsgi --version
there comes error:
# ./uwsgi --version
-bash: ./uwsgi: cannot execute binaries
So, is the uwsgi
package different in the different operating systems?
Upvotes: 0
Views: 781
Reputation: 6395
If the package contains C or other compiled language code - yes. This is why wheels have long complicated names detailing the OS and other variables.
Make setting up a venv part of your deployment. That should solve the problem.
Upvotes: 1