Ultimaker / cura-build-environment

CMake project to build dependencies for Cura
GNU Affero General Public License v3.0
24 stars 55 forks source link

Linux:No module named pip #66

Closed DapDeveloper closed 5 years ago

DapDeveloper commented 5 years ago

I tried to build cura-build-environment on Linux machine(Lubuntu, Ubuntu and Debian9). When is compiling Python package generate an error that the pip module is not installed. I tried to change the version of python to be installed on python.cmake (3.5.2,3.5.4,3.5.7) but nothing, the error persist. In OS is installed pip. Thanks

Ghostkeeper commented 5 years ago

I'd expect the version of Python to be installed from cura-build-environment to be separate from the one installed on your system. For me it works (Ubuntu 19.04) so it should be the same as you! Perhaps it needs to install Pip separately into that CPython installation? I'd expect the CPython installation to be shipped with Pip though...

DapDeveloper commented 5 years ago

These are the steps I followed:

Ghostkeeper commented 5 years ago

I don't know, seems like those are the correct steps.

I've more or less given up on trying to maintain a build system that works on all computers. I'm happy if it works on Ultimaker's build servers and on my own computers. For others it's too hard to debug remotely.

If you can find a way to ensure that Pip is included with the CPython version you're building, please let me know. Maybe we need to do something like a find_package(PythonPip) with a custom find script as well.

LipuFei commented 5 years ago

@DapDeveloper You also need SSL to use pip. Could you run apt install libssl-dev and try again? If SSL is missing, it will not compile the SSL modules in Python and pip will not work.

LipuFei commented 5 years ago

Closing this issue due to inactivity.