Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Install Error 系统找不到指定的文件magent.libmagent #83

Open
DemonsHunter opened this issue Mar 2, 2021 · 2 comments
Open

Comments

@DemonsHunter
Copy link

although this pj has not been maintained any more, but due to the latest repo does not offer an issuse service, so I have to propose my question there.

When I use the command

pip install magent

I always encounter this error:

ERROR: Command errored out with exit status 1:
command: 'f:\python\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\Users\lenovo\AppData\Local\Temp\pip-install-3sxu7k0d\magent\setup.py'"'"'; file='"'"'C:\Users\lenovo\AppData\Local\Temp\pip-install-3sxu7k0d\magent\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\lenovo\AppData\Local\Temp\pip-record-tiuqc_8j\install-record.txt' --single-version-externally-managed --compile --install-headers 'f:\python\Include\magent'
cwd: C:\Users\lenovo\AppData\Local\Temp\pip-install-3sxu7k0d\magent
Complete output (55 lines):
running install
running build
running build_py
creating build
creating build\lib.win-amd64-3.8
creating build\lib.win-amd64-3.8\magent
copying magent\c_lib.py -> build\lib.win-amd64-3.8\magent
copying magent\environment.py -> build\lib.win-amd64-3.8\magent
copying magent\gridworld.py -> build\lib.win-amd64-3.8\magent
copying magent\utility.py -> build\lib.win-amd64-3.8\magent
copying magent_init_.py -> build\lib.win-amd64-3.8\magent
creating build\lib.win-amd64-3.8\magent\builtin
copying magent\builtin_init_.py -> build\lib.win-amd64-3.8\magent\builtin
creating build\lib.win-amd64-3.8\magent\builtin\config
copying magent\builtin\config\battle.py -> build\lib.win-amd64-3.8\magent\builtin\config
copying magent\builtin\config\double_attack.py -> build\lib.win-amd64-3.8\magent\builtin\config
copying magent\builtin\config\forest.py -> build\lib.win-amd64-3.8\magent\builtin\config
copying magent\builtin\config\pursuit.py -> build\lib.win-amd64-3.8\magent\builtin\config
copying magent\builtin\config_init_.py -> build\lib.win-amd64-3.8\magent\builtin\config
running egg_info
writing magent.egg-info\PKG-INFO
writing dependency_links to magent.egg-info\dependency_links.txt
writing requirements to magent.egg-info\requires.txt
writing top-level names to magent.egg-info\top_level.txt
reading manifest file 'magent.egg-info\SOURCES.txt'
reading manifest template 'MANIFEST.in'
warning: no files found matching '.dylib'
warning: no files found matching '
.so'
writing manifest file 'magent.egg-info\SOURCES.txt'
running build_ext
-- Building for: Visual Studio 14 2015
-- Selecting Windows SDK version to target Windows 10.0.18363.
-- The C compiler identification is MSVC 19.0.24210.0
-- The CXX compiler identification is MSVC 19.0.24210.0
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: C:/Program Files (x86)/Microsoft Visual Studio 14.0/VC/bin/cl.exe - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: C:/Program Files (x86)/Microsoft Visual Studio 14.0/VC/bin/cl.exe - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Configuring done
-- Generating done
CMake Warning:
Manually-specified variables were not used by the project:

    CMAKE_BUILD_TYPE


-- Build files have been written to: C:/Users/lenovo/AppData/Local/Temp/pip-install-3sxu7k0d/magent/build/temp.win-amd64-3.8/Release
error: [WinError 2] 系统找不到指定的文件。

How can I fix this?

@Kipsora
Copy link
Collaborator

Kipsora commented Mar 3, 2021

It seems that you are doing MAgent on Windows, which unfortunately is not supported. That being said, you should try MAgent either on Linux or OSX.

@priyamDalmia
Copy link

@DemonsHunter Were you able to fix this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants