Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
55 views
in Technique[技术] by (71.8m points)

python - Cannot install gnina_tensorflow using pip

git clone https://github.com/jscant/gnina_tensorflow.git
cd gnina_tensorflow.git
pip install -e .

and going to this error I don't know why these results come out. What should i do to solve this problem?

Obtaining file:///C:/Users/82109/Desktop/gnina_tensorflow-master
Installing collected packages: gnina-tensorflow
  Running setup.py develop for gnina-tensorflow
Note: you may need to restart the kernel to use updated packages.
    ERROR: Command errored out with exit status 1:
     command: 'c:anaconda3envsfgpupython.exe' -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\Users\82109\Desktop\gnina_tensorflow-master\setup.py'"'"'; __file__='"'"'C:\Users\82109\Desktop\gnina_tensorflow-master\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'
'"'"', '"'"'
'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' develop --no-deps
         cwd: C:Users82109Desktopgnina_tensorflow-master
    Complete output (60 lines):
    running develop
    running egg_info
    writing gnina_tensorflow.egg-infoPKG-INFO
    writing dependency_links to gnina_tensorflow.egg-infodependency_links.txt
    writing top-level names to gnina_tensorflow.egg-infoop_level.txt
    reading manifest file 'gnina_tensorflow.egg-infoSOURCES.txt'
    writing manifest file 'gnina_tensorflow.egg-infoSOURCES.txt'
    running build_ext
    CMake Warning (dev) at CMakeLists.txt:1 (project):
      Policy CMP0048 is not set: project() command manages VERSION variables.
      Run "cmake --help-policy CMP0048" for policy details.  Use the cmake_policy
      command to set the policy and suppress this warning.

  The following variable(s) would be set to empty:

    CMAKE_PROJECT_VERSION
    CMAKE_PROJECT_VERSION_MAJOR
    CMAKE_PROJECT_VERSION_MINOR
    CMAKE_PROJECT_VERSION_PATCH
This warning is for project developers.  Use -Wno-dev to suppress it.

-- Selecting Windows SDK version 10.0.18362.0 to target Windows 10.0.19042.
-- pybind11 v2.6.0 dev1
-- Configuring done
-- Generating done
-- Build files have been written to: C:/Users/82109/Desktop/gnina_tensorflow-master/build/temp.win-amd64-3.8/Release
.NET Framework? Microsoft (R) Build Engine ?? 16.8.3+39993bd9d
Copyright (C) Microsoft Corporation. All rights reserved.

cl : ??? error D8021: '/Wextra' ?? ??? ???????. [C:Users82109Desktopgnina_tensorflow-masteruildemp.win-amd64-3.8Releasecppgnina_tensorflow_cpp.vcxproj]
Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "C:Users82109Desktopgnina_tensorflow-mastersetup.py", line 91, in <module>
    setup(
  File "c:anaconda3envsfgpulibdistutilscore.py", line 148, in setup
    dist.run_commands()
  File "c:anaconda3envsfgpulibdistutilsdist.py", line 966, in run_commands
    self.run_command(cmd)
  File "c:anaconda3envsfgpulibdistutilsdist.py", line 985, in run_command
    cmd_obj.run()
  File "c:anaconda3envsfgpulibsite-packagessetuptoolscommanddevelop.py", line 34, in run
    self.install_for_development()
  File "c:anaconda3envsfgpulibsite-packagessetuptoolscommanddevelop.py", line 136, in install_for_development
    self.run_command('build_ext')
  File "c:anaconda3envsfgpulibdistutilscmd.py", line 313, in run_command
    self.distribution.run_command(command)
  File "c:anaconda3envsfgpulibdistutilsdist.py", line 985, in run_command
    cmd_obj.run()
  File "C:Users82109Desktopgnina_tensorflow-mastersetup.py", line 48, in run
    self.build_extension(ext)
  File "C:Users82109Desktopgnina_tensorflow-mastersetup.py", line 84, in build_extension
    subprocess.check_call(['cmake', '--build', '.'] + build_args,
  File "c:anaconda3envsfgpulibsubprocess.py", line 364, in check_call
    raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['cmake', '--build', '.', '--config', 'Release', '--', '/m']' returned non-zero exit status 1.
build_temp: buildemp.win-amd64-3.8Release
extdir: C:Users82109Desktopgnina_tensorflow-master
python_exe: c:anaconda3envsfgpupython.exe
cfg: Release
['-DCMAKE_LIBRARY_OUTPUT_DIRECTORY=C:\Users\82109\Desktop\gnina_tensorflow-master', '-DPYTHON_EXECUTABLE=c:\anaconda3\envs\tfgpu\python.exe', '-DCMAKE_ARCHIVE_OUTPUT_DIRECTORY=C:\Users\82109\Desktop\gnina_tensorflow-master', '-DCMAKE_LIBRARY_OUTPUT_DIRECTORY_RELEASE=C:\Users\82109\Desktop\gnina_tensorflow-master', '-A', 'x64']


 ----------------------------------------
ERROR: Command errored out with exit status 1: 'c:anaconda3envsfgpupython.exe' -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\Users\82109\Desktop\gnina_tensorflow-master\setup.py'"'"'; __file__='"'"'C:\Users\82109\Desktop\gnina_tensorflow-master\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'
'"'"', '"'"'
'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' develop --no-deps Check the logs for full command output.
?
question from:https://stackoverflow.com/questions/65871507/cannot-install-gnina-tensorflow-using-pip

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)
Waitting for answers

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...