error while installing peertools
1
0
Entering edit mode
2.5 years ago
rheab1230 ▴ 140

Hello, I am trying to install peertools but when I do cmake command it throws error I tried to use command cmake ./.. But its giving error.

The error: File "", line 1 from distutils import sysconfig; print sysconfig.get_python_lib() ^ SyntaxError: invalid syntax CMake Error at python/CMakeLists.txt:49 (if): if given arguments:

"(" "NOT" "EXISTS" "File \"<string>\", line 1 from distutils import sysconfig" " print sysconfig.get_python_inc() ^ SyntaxError: invalid syntax" ")"

Unknown arguments specified

-- Configuring incomplete, errors occurred!

Can anyone please help me out with this? Thank you

peertools • 1.2k views
ADD COMMENT
0
Entering edit mode

I tried to reinstall cmake in my account. But now I am getting this error: the command:

cmake ./..

the error: CMake Deprecation Warning at CMakeLists.txt:1 (cmake_minimum_required): Compatibility with CMake < 2.8.12 will be removed from a future version of CMake.

Update the VERSION argument <min> value or use a ...<max> suffix to tell CMake that the project does not need compatibility with older versions.

File "<string>", line 1 from distutils import sysconfig; print sysconfig.get_python_lib() ^ SyntaxError: invalid syntax CMake Error at python/CMakeLists.txt:49 (if): if given arguments:

"(" "NOT" "EXISTS" "File \"<string>\", line 1
  from distutils import sysconfig" " print sysconfig.get_python_inc()
                                         ^

SyntaxError: invalid syntax" ")"

Unknown arguments specified

-- Configuring incomplete, errors occurred!

ADD REPLY
0
Entering edit mode

did you find any solution? The only thing that worked for me was to use the R-package on a Linux server but I had to > conda deactivate before starting the session.

ADD REPLY
0
Entering edit mode
8 months ago
Chenxin • 0

Add parentheses. Change it to

print(sysconfig.get_python_inc()).

There are three places you need to modify.

ADD COMMENT
0
Entering edit mode

Welcome to Biostars! The post you are replying to is 21 months old - you can see that by looking at age indicators - and it is a safe assumption that the problem was either solved or the whole attempt abandoned.

ADD REPLY

Login before adding your answer.

Traffic: 1759 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6