-
Notifications
You must be signed in to change notification settings - Fork 4.8k
how to install it on Windows computer pls #548
Description
how to install it on Windows computer pls
do you have bunary file?
I try to run
pip install .
but have many errors
like
c:\users\sndr\anaconda3\Include/pybind11/cast.h:828:38: error: there are no arguments to 'make_copy_constructor' that depend on a template parameter, so a declaration of 'make_copy_constructor' must be available [-fpermissive]
make_copy_constructor(src), make_move_constructor(src));
^
c:\users\sndr\anaconda3\Include/pybind11/cast.h:828:66: error: there are no arguments to 'make_move_constructor' that depend on a template parameter, so a declaration of 'make_move_constructor' must be available [-fpermissive]
make_copy_constructor(src), make_move_constructor(src));
^
c:\users\sndr\anaconda3\Include/pybind11/cast.h: In static member function 'static pybind11::handle pybind11::detail::type_caster_base::cast_holder(const int*, const void*)':
c:\users\sndr\anaconda3\Include/pybind11/cast.h:832:9: warning: 'auto' changes meaning in C++11; please remove it [-Wc++0x-compat]
auto st = src_and_type(src);
^
c:\users\sndr\anaconda3\Include/pybind11/cast.h:832:14: error: 'st' does not name a type
auto st = src_and_type(src);
^
c:\users\sndr\anaconda3\Include/pybind11/cast.h:834:13: error: 'st' was not declared in this scope
st.first, return_value_policy::take_ownership, {}, st.second,
^
c:\users\sndr\anaconda3\Include/pybind11/cast.h:834:23: error: 'return_value_policy' is not a class or namespace
st.first, return_value_policy::take_ownership, {}, st.second,
^
c:\users\sndr\anaconda3\Include/pybind11/cast.h:834:60: warning: extended initializer lists only available with -std=c++11 or -std=gnu++11
st.first, return_value_policy::take_ownership, {}, st.second,
^
c:\users\sndr\anaconda3\Include/pybind11/cast.h:835:13: error: 'nullptr' was not declared in this scope
nullptr, nullptr, holder);
^
In file included from python/fastText/pybind/fasttext_pybind.cc:13:0:
c:\users\sndr\anaconda3\Include/pybind11/pybind11.h: At global scope:
c:\users\sndr\anaconda3\Include/pybind11/pybind11.h:1973:29: error: expected unqualified-id before end of line
c:\users\sndr\anaconda3\Include/pybind11/pybind11.h:1973:29: error: expected '}' before end of line
c:\users\sndr\anaconda3\Include/pybind11/pybind11.h:1973:29: error: expected '}' before end of line
c:\users\sndr\anaconda3\Include/pybind11/pybind11.h:1973:29: error: expected declaration before end of line
In file included from c:\users\sndr\anaconda3\Include/pybind11/attr.h:13:0,
from c:\users\sndr\anaconda3\Include/pybind11/pybind11.h:43,
from python/fastText/pybind/fasttext_pybind.cc:13:
c:\users\sndr\anaconda3\Include/pybind11/cast.h: In instantiation of 'bool pybind11::detail::type_caster_generic::load_impl(pybind11::handle, bool) [with ThisT = pybind11::detail::type_caster_generic]':
c:\users\sndr\anaconda3\Include/pybind11/cast.h:491:59: required from here
c:\users\sndr\anaconda3\Include/pybind11/cast.h:638:49: error: invalid initialization of reference of type 'int&' from expression of type 'pybind11::detail::type_caster_generic'
auto &this_ = static_cast<ThisT &>(this);
^
c:\users\sndr\anaconda3\Include/pybind11/cast.h:651:48: error: invalid initialization of reference of type 'int&' from expression of type 'const std::vectorpybind11::detail::type_info*'
auto &bases = all_type_info(srctype);
^
c:\users\sndr\anaconda3\Include/pybind11/cast.h:699:26: error: invalid conversion from 'int' to 'const pybind11::detail::type_info' [-fpermissive]
typeinfo = gtype;
^
In file included from c:\users\sndr\anaconda3\Include/pybind11/cast.h:13:0,
from c:\users\sndr\anaconda3\Include/pybind11/attr.h:13,
from c:\users\sndr\anaconda3\Include/pybind11/pybind11.h:43,
from python/fastText/pybind/fasttext_pybind.cc:13:
c:\users\sndr\anaconda3\Include/pybind11/pytypes.h:298:12: warning: inline function 'virtual pybind11::error_already_set::~error_already_set()' used but never defined
inline ~error_already_set();
^
In file included from c:\users\sndr\anaconda3\Include/pybind11/cast.h:16:0,
from c:\users\sndr\anaconda3\Include/pybind11/attr.h:13,
from c:\users\sndr\anaconda3\Include/pybind11/pybind11.h:43,
from python/fastText/pybind/fasttext_pybind.cc:13:
c:\users\sndr\anaconda3\Include/pybind11/detail/internals.h:17:22: warning: inline function 'PyTypeObject* pybind11::detail::make_static_property_type()' used but never defined
inline PyTypeObject make_static_property_type();
^
c:\users\sndr\anaconda3\Include/pybind11/detail/internals.h:18:22: warning: inline function 'PyTypeObject pybind11::detail::make_default_metaclass()' used but never defined
inline PyTypeObject make_default_metaclass();
^
c:\users\sndr\anaconda3\Include/pybind11/detail/internals.h:19:18: warning: inline function 'PyObject pybind11::detail::make_object_base_type(PyTypeObject*)' used but never defined
inline PyObject *make_object_base_type(PyTypeObject *metaclass);
^
In file included from c:\users\sndr\anaconda3\Include/pybind11/attr.h:13:0,
from c:\users\sndr\anaconda3\Include/pybind11/pybind11.h:43,
from python/fastText/pybind/fasttext_pybind.cc:13:
c:\users\sndr\anaconda3\Include/pybind11/cast.h:479:13: warning: inline function 'void pybind11::detail::keep_alive_impl(pybind11::handle, pybind11::handle)' used but never defined
inline void keep_alive_impl(handle nurse, handle patient);
^
In file included from c:\users\sndr\anaconda3\Include/pybind11/cast.h:13:0,
from c:\users\sndr\anaconda3\Include/pybind11/attr.h:13,
from c:\users\sndr\anaconda3\Include/pybind11/pybind11.h:43,
from python/fastText/pybind/fasttext_pybind.cc:13:
c:\users\sndr\anaconda3\Include/pybind11/pytypes.h:298:12: warning: inline function 'virtual pybind11::error_already_set::~error_already_set()' used but never defined
inline ~error_already_set();
^
error: command 'C:\Users\sndr\Anaconda3\Library\mingw-w64\bin\gcc.exe' failed with exit status 1
----------------------------------------
Command "c:\users\sndr\anaconda3\python.exe -u -c "import setuptools, tokenize;file='C:\Users\sndr\AppData\Local\Temp\pip-req-build-x1v7lvy4\setup.py';f=getattr(tokenize, 'open', open)(file);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, file, 'exec'))" install --record C:\Users\sndr\AppData\Local\Temp\pip-record-6xhv0_r4\install-record.txt --single-version-externally-managed --compile" failed with error code 1 in C:\Users\sndr\AppData\Local\Temp\pip-req-build-x1v7lvy4
You are using pip version 10.0.0, however version 10.0.1 is available.
You should consider upgrading via the 'python -m pip install --upgrade pip' command.