Hello, I tried to install this package to my custom conda envuronment, here is what I did: git clone this repo -> open Anaconda prompt, conda activate my environment -> locate to the local folder in which the local repo is -> run "pip install ./pydpomdp", but I keep getting the following error, my system OS is windows 10 (have cmake, git, and anaconda installed, python version: 3.9.16). Could you please tell what I should do? Thanks very much.
(work_env) C:\Work\Python\Dec-POMDP>pip install ./pydpomdp
Processing c:\work\python\dec-pomdp\pydpomdp
Installing build dependencies ... done
Getting requirements to build wheel ... done
Preparing metadata (pyproject.toml) ... done
Collecting pybind11
Using cached pybind11-2.10.4-py3-none-any.whl (222 kB)
Requirement already satisfied: wheel in c:\anaconda\envs\work_env\lib\site-packages (from pydpomdp==0.1.0) (0.38.4)
Building wheels for collected packages: pydpomdp
Building wheel for pydpomdp (pyproject.toml) ... error
error: subprocess-exited-with-error
× Building wheel for pydpomdp (pyproject.toml) did not run successfully.
│ exit code: 1
╰─> [68 lines of output]
running bdist_wheel
running build
running build_py
running build_ext
<string>:26: DeprecationWarning: distutils Version classes are deprecated. Use packaging.version instead.
CMake Error at CMakeLists.txt:2 (project):
Generator
NMake Makefiles
does not support platform specification, but platform
x64
was specified.
CMake Error: CMAKE_C_COMPILER not set, after EnableLanguage
CMake Error: CMAKE_CXX_COMPILER not set, after EnableLanguage
-- Configuring incomplete, errors occurred!
See also "C:/Work/Python/Dec-POMDP/pydpomdp/build/temp.win-amd64-cpython-39/Release/CMakeFiles/CMakeOutput.log".
Traceback (most recent call last):
File "C:\Anaconda\envs\work_env\lib\site-packages\pip\_vendor\pyproject_hooks\_in_process\_in_process.py", line 353, in <module>
main()
File "C:\Anaconda\envs\work_env\lib\site-packages\pip\_vendor\pyproject_hooks\_in_process\_in_process.py", line 335, in main
json_out['return_val'] = hook(**hook_input['kwargs'])
File "C:\Anaconda\envs\work_env\lib\site-packages\pip\_vendor\pyproject_hooks\_in_process\_in_process.py", line 251, in build_wheel
return _build_backend().build_wheel(wheel_directory, config_settings,
File "C:\Users\<user_name>\AppData\Local\Temp\pip-build-env-cgirn8lc\overlay\Lib\site-packages\setuptools\build_meta.py", line 413, in build_wheel
return self._build_with_temp_dir(['bdist_wheel'], '.whl',
File "C:\Users\<user_name>\AppData\Local\Temp\pip-build-env-cgirn8lc\overlay\Lib\site-packages\setuptools\build_meta.py", line 398, in _build_with_temp_dir
self.run_setup()
File "C:\Users\<user_name>\AppData\Local\Temp\pip-build-env-cgirn8lc\overlay\Lib\site-packages\setuptools\build_meta.py", line 335, in run_setup
exec(code, locals())
File "<string>", line 70, in <module>
File "C:\Users\<user_name>\AppData\Local\Temp\pip-build-env-cgirn8lc\overlay\Lib\site-packages\setuptools\__init__.py", line 108, in setup
return distutils.core.setup(**attrs)
File "C:\Users\<user_name>\AppData\Local\Temp\pip-build-env-cgirn8lc\overlay\Lib\site-packages\setuptools\_distutils\core.py", line 185, in setup
return run_commands(dist)
File "C:\Users\<user_name>\AppData\Local\Temp\pip-build-env-cgirn8lc\overlay\Lib\site-packages\setuptools\_distutils\core.py", line 201, in run_commands
dist.run_commands()
File "C:\Users\<user_name>\AppData\Local\Temp\pip-build-env-cgirn8lc\overlay\Lib\site-packages\setuptools\_distutils\dist.py", line 969, in run_commands
self.run_command(cmd)
File "C:\Users\<user_name>\AppData\Local\Temp\pip-build-env-cgirn8lc\overlay\Lib\site-packages\setuptools\dist.py", line 1221, in run_command
super().run_command(command)
File "C:\Users\<user_name>\AppData\Local\Temp\pip-build-env-cgirn8lc\overlay\Lib\site-packages\setuptools\_distutils\dist.py", line 988, in run_command
cmd_obj.run()
File "C:\Users\<user_name>\AppData\Local\Temp\pip-build-env-cgirn8lc\overlay\Lib\site-packages\wheel\bdist_wheel.py", line 343, in run
self.run_command("build")
File "C:\Users\<user_name>\AppData\Local\Temp\pip-build-env-cgirn8lc\overlay\Lib\site-packages\setuptools\_distutils\cmd.py", line 318, in run_command
self.distribution.run_command(command)
File "C:\Users\<user_name>\AppData\Local\Temp\pip-build-env-cgirn8lc\overlay\Lib\site-packages\setuptools\dist.py", line 1221, in run_command
super().run_command(command)
File "C:\Users\<user_name>\AppData\Local\Temp\pip-build-env-cgirn8lc\overlay\Lib\site-packages\setuptools\_distutils\dist.py", line 988, in run_command
cmd_obj.run()
File "C:\Users\<user_name>\AppData\Local\Temp\pip-build-env-cgirn8lc\overlay\Lib\site-packages\setuptools\_distutils\command\build.py", line 131, in run
self.run_command(cmd_name)
File "C:\Users\<user_name>\AppData\Local\Temp\pip-build-env-cgirn8lc\overlay\Lib\site-packages\setuptools\_distutils\cmd.py", line 318, in run_command
self.distribution.run_command(command)
File "C:\Users\<user_name>\AppData\Local\Temp\pip-build-env-cgirn8lc\overlay\Lib\site-packages\setuptools\dist.py", line 1221, in run_command
super().run_command(command)
File "C:\Users\<user_name>\AppData\Local\Temp\pip-build-env-cgirn8lc\overlay\Lib\site-packages\setuptools\_distutils\dist.py", line 988, in run_command
cmd_obj.run()
File "<string>", line 31, in run
File "<string>", line 67, in build_extension
File "C:\Anaconda\envs\work_env\lib\subprocess.py", line 373, in check_call
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['cmake', 'C:\\Work\\Python\\Dec-POMDP\\pydpomdp\\pydpomdp', '-DCMAKE_LIBRARY_OUTPUT_DIRECTORY=C:\\Work\\Python\\Dec-POMDP\\pydpomdp\\build\\lib.win-amd64-cpython-39\\', '-DPYTHON_EXECUTABLE=C:\\Anaconda\\envs\\work_env\\python.exe', '-Dpybind11_DIR=C:\\Users\\<user_name>\\AppData\\Local\\Temp\\pip-build-env-cgirn8lc\\overlay\\Lib\\site-packages\\pybind11\\share\\cmake\\pybind11', '-DCMAKE_LIBRARY_OUTPUT_DIRECTORY_RELEASE=C:\\Work\\Python\\Dec-POMDP\\pydpomdp\\build\\lib.win-amd64-cpython-39\\', '-A', 'x64']' returned non-zero exit status 1.
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
ERROR: Failed building wheel for pydpomdp
Failed to build pydpomdp
ERROR: Could not build wheels for pydpomdp, which is required to install pyproject.toml-based projects
Hello, I tried to install this package to my custom conda envuronment, here is what I did: git clone this repo -> open Anaconda prompt, conda activate my environment -> locate to the local folder in which the local repo is -> run "pip install ./pydpomdp", but I keep getting the following error, my system OS is windows 10 (have cmake, git, and anaconda installed, python version: 3.9.16). Could you please tell what I should do? Thanks very much.