[Bug 236909] error when installing scipy by pip on FreeBSD 12.0

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Mon Apr 1 02:45:45 UTC 2019


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=236909

Kubilay Kocak <koobs at FreeBSD.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         Resolution|---                         |Rejected
             Status|New                         |Closed
                 CC|                            |dim at FreeBSD.org,
                   |                            |python at FreeBSD.org

--- Comment #2 from Kubilay Kocak <koobs at FreeBSD.org> ---
Thank you for your report skywalk.

Direct installation of Python packages via pip is not supported, as it:

1) Bypasses FreeBSD package registration and management
2) Does not use the ports infrastructure to produce standardised and consistent
Python packages that work on FreeBSD. A large number of Python packages do not
build out-of-the-box due to different include/library locations. Ports manages
this by providing the package the correct locations. 

In addition, due to (1), using pip to install Python package into the system
Python environment can (and does) create conflicts between what the pkg system
believes is installed and what it actually installed, rendering the system
Python environment corrupted or broken. When installing the devel/py-pip
package, there is a pkg-message displayed after installation, warning:

============================== !!!! WARNING !!!! ==========================

pip MUST ONLY be used:

 * With the --user flag, OR
 * To install or manage Python packages in virtual environments

Failure to follow this warning can and will result in an inconsistent
system-wide Python environment (LOCALBASE/lib/pythonX.Y/site-packages) and
cause errors.

Avoid using pip as root unless you know what you're doing.

============================== !!!! WARNING !!!! ==========================

Please use the science/py-scipy port/package to install scipy. 

If the port fails to build in the same manner, please re-open this issue, and
include (*as attachments*), all of the following:

- The complete port build log
- If the build crashes, the "Preprocessed source(s) and associated run
script(s)" as described in the crash error message.

-- 
You are receiving this mail because:
You are the assignee for the bug.
You are on the CC list for the bug.


More information about the freebsd-python mailing list