安装Python机器学习库中出现的一些问题

版权声明:本文为博主原创文章,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接和本声明。
本文链接:https://blog.csdn.net/weixin_41310362/article/details/89496200

1.出现pip 版本太低,需要重新安装,但是报错:Could not install packages due to an EnvironmentError: [WinError 5] 拒绝访问。: 'c:\\program files\\python37

解决方法参考文章:http://www.cnblogs.com/51ma/p/9467839.html

2.安装numpy库的命令:pip install --user numpy(顺序不能错)

3.安装scipy库的命令:

展开阅读全文

求助:在安装JLink_Linux_V434a出现的一些问题

12-21

各位路过的大神帮帮新手吧,感觉很无助啊。具体是这样的:rn在搭建Ubuntu下使用Jlink去裸调6410,之前的交叉编译环境也搭建好了,现在准备配置JlinkGDBsever,于是下载解压JLink_Linux_V434a.taz ,方法基本参考http://bbs.chinaunix.net/thread-3641789-1-1.html 的方法rn可是我的过程就不行那上面的那么简单容易!rn第一个问题是在我下载安装libusb-1.0.9时 ./comnfigure 出现了如下两行报错:rnchecking for a BSD-compatible install... /usr/bin/install -crnchecking whether build environment is sane... configure: error: unsafe absolute working directory namern之后的make 和make install 就不谈了rn进入JLink_Linux_V434a文件夹后按照readme上面的操作完后运行./start rn提示如下:rn./JLinkExe: error while loading shared libraries: libreadline.so.5: cannot open shared object file: No such file or directoryrn上网查好像要安装readline-6.2 ,于是下载安装readline-6.2 运行./configure 时又出现报错:rnrnroot@forlinx-virtual-machine:/forlinx/zullge' s Data center/readline-6.2# ./configure rnchecking build system type... i686-pc-linux-gnurnchecking host system type... i686-pc-linux-gnurnrnBeginning configuration for readline-6.2 for i686-pc-linux-gnurnrnchecking whether make sets $(MAKE)... yesrnchecking for gcc... gccrnchecking for C compiler default output file name... a.outrnchecking whether the C compiler works... yesrnchecking whether we are cross compiling... nornchecking for suffix of executables... rnchecking for suffix of object files... ornchecking whether we are using the GNU C compiler... yesrnchecking whether gcc accepts -g... yesrnchecking for gcc option to accept ISO C89... none neededrnchecking how to run the C preprocessor... gcc -Ernchecking for grep that handles long lines and -e... /bin/greprnchecking for egrep... /bin/grep -Ernchecking for ANSI C header files... yesrnchecking for sys/types.h... yesrnchecking for sys/stat.h... yesrnchecking for stdlib.h... yesrnchecking for string.h... yesrnchecking for memory.h... yesrnchecking for strings.h... yesrnchecking for inttypes.h... yesrnchecking for stdint.h... yesrnchecking for unistd.h... yesrnchecking minix/config.h usability... nornchecking minix/config.h presence... nornchecking for minix/config.h... nornchecking whether it is safe to define __EXTENSIONS__... yesrnchecking whether gcc needs -traditional... nornchecking for a BSD-compatible install... /usr/bin/install -crnchecking for ar... arrnchecking for ranlib... ranlibrnchecking for an ANSI C-conforming const... yesrnchecking for function prototypes... yesrnchecking whether char is unsigned... nornchecking for working volatile... yesrnchecking return type of signal handlers... voidrnchecking for size_t... yesrnchecking for ssize_t... yesrnchecking for ANSI C header files... (cached) yesrnchecking whether stat file-mode macros are broken... nornchecking for dirent.h that defines DIR... yesrnchecking for library containing opendir... none requiredrnchecking for fcntl... yesrnchecking for kill... yesrnchecking for lstat... yesrnchecking for memmove... yesrnchecking for putenv... yesrnchecking for select... yesrnchecking for setenv... yesrnchecking for setlocale... yesrnchecking for strcasecmp... yesrnchecking for strpbrk... yesrnchecking for tcgetattr... yesrnchecking for vsnprintf... yesrnchecking for isascii... yesrnchecking for isxdigit... yesrnchecking for getpwent... yesrnchecking for getpwnam... yesrnchecking for getpwuid... yesrnchecking for working strcoll... yesrnchecking fcntl.h usability... yesrnchecking fcntl.h presence... yesrnchecking for fcntl.h... yesrnchecking for unistd.h... (cached) yesrnchecking for stdlib.h... (cached) yesrnchecking varargs.h usability... nornchecking varargs.h presence... nornchecking for varargs.h... nornchecking stdarg.h usability... yesrnchecking stdarg.h presence... yesrnchecking for stdarg.h... yesrnchecking for string.h... (cached) yesrnchecking for strings.h... (cached) yesrnchecking limits.h usability... yesrnchecking limits.h presence... yesrnchecking for limits.h... yesrnchecking locale.h usability... yesrnchecking locale.h presence... yesrnchecking for locale.h... yesrnchecking pwd.h usability... yesrnchecking pwd.h presence... yesrnchecking for pwd.h... yesrnchecking for memory.h... (cached) yesrnchecking termcap.h usability... yesrnchecking termcap.h presence... yesrnchecking for termcap.h... yesrnchecking termios.h usability... yesrnchecking termios.h presence... yesrnchecking for termios.h... yesrnchecking termio.h usability... yesrnchecking termio.h presence... yesrnchecking for termio.h... yesrnchecking sys/pte.h usability... nornchecking sys/pte.h presence... nornchecking for sys/pte.h... nornchecking sys/stream.h usability... nornchecking sys/stream.h presence... nornchecking for sys/stream.h... nornchecking sys/select.h usability... yesrnchecking sys/select.h presence... yesrnchecking for sys/select.h... yesrnchecking sys/file.h usability... yesrnchecking sys/file.h presence... yesrnchecking for sys/file.h... yesrnchecking for sys/ptem.h... nornchecking for special C compiler options needed for large files... nornchecking for _FILE_OFFSET_BITS value needed for large files... 64rnchecking for type of signal functions... posixrnchecking if signal handlers must be reinstalled when invoked... nornchecking for presence of POSIX-style sigsetjmp/siglongjmp... presentrnchecking for lstat... yesrnchecking whether or not strcoll and strcmp differ... nornchecking whether the ctype macros accept non-ascii characters... nornchecking whether getpw functions are declared in pwd.h... yesrnchecking whether termios.h defines TIOCGWINSZ... nornchecking whether sys/ioctl.h defines TIOCGWINSZ... yesrnchecking for sig_atomic_t in signal.h... yesrnchecking whether signal handlers are of type void... yesrnchecking for TIOCSTAT in sys/ioctl.h... nornchecking for FIONREAD in sys/ioctl.h... yesrnchecking for speed_t in sys/types.h... nornchecking for struct winsize in sys/ioctl.h and termios.h... sys/ioctl.hrnchecking for struct dirent.d_ino... yesrnchecking for struct dirent.d_fileno... yesrnchecking for tgetent... nornchecking for tgetent in -ltermcap... yesrnchecking which library has the termcap functions... using libtermcaprnchecking wctype.h usability... yesrnchecking wctype.h presence... yesrnchecking for wctype.h... yesrnchecking wchar.h usability... yesrnchecking wchar.h presence... yesrnchecking for wchar.h... yesrnchecking langinfo.h usability... yesrnchecking langinfo.h presence... yesrnchecking for langinfo.h... yesrnchecking for mbrlen... yesrnchecking for mbscasecmp... nornchecking for mbscmp... nornchecking for mbsnrtowcs... yesrnchecking for mbsrtowcs... yesrnchecking for mbschr... nornchecking for wcrtomb... yesrnchecking for wcscoll... yesrnchecking for wcsdup... yesrnchecking for wcwidth... yesrnchecking for wctype... yesrnchecking for wcswidth... yesrnchecking whether mbrtowc and mbstate_t are properly declared... yesrnchecking for iswlower... yesrnchecking for iswupper... yesrnchecking for towlower... yesrnchecking for towupper... yesrnchecking for iswctype... yesrnchecking for nl_langinfo and CODESET... yesrnchecking for wchar_t in wchar.h... yesrnchecking for wctype_t in wctype.h... yesrnchecking for wint_t in wctype.h... yesrnchecking configuration for building shared libraries... supportedrnconfigure: creating ./config.statusrn./config.status: line 398: syntax error near unexpected token `)'rn./config.status: line 398: ` *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;'rn最后的 syntax error near unexpected token `)' ,line398 也不知道是里面那个文件出问题了rn[size=16px][/size]rn求大神帮帮忙rn 论坛

没有更多推荐了,返回首页