91av视频/亚洲h视频/操亚洲美女/外国一级黄色毛片 - 国产三级三级三级三级

  • 大小: 4.03MB
    文件類型: .gz
    金幣: 1
    下載: 0 次
    發(fā)布日期: 2023-11-03
  • 語言: Python
  • 標(biāo)簽: numpy??

資源簡(jiǎn)介

python “no module named numpy” 解決方案 安裝方法: 1.在官網(wǎng)上下載該包: 2.解壓 3.cd 進(jìn)入解壓后的路徑 4.輸入命令:python setup.py install 5.安裝完成 現(xiàn)在資源積分沒有“免費(fèi)”或“1分”了,最小只能為2分,請(qǐng)大家見諒;

資源截圖

代碼片段和文件信息

#!/usr/bin/env?python
“““NumPy:?array?processing?for?numbers?strings?records?and?objects.

NumPy?is?a?general-purpose?array-processing?package?designed?to
efficiently?manipulate?large?multi-dimensional?arrays?of?arbitrary
records?without?sacrificing?too?much?speed?for?small?multi-dimensional
arrays.??NumPy?is?built?on?the?Numeric?code?base?and?adds?features
introduced?by?numarray?as?well?as?an?extended?C-API?and?the?ability?to
create?arrays?of?arbitrary?type?which?also?makes?NumPy?suitable?for
interfacing?with?general-purpose?data-base?applications.

There?are?also?basic?facilities?for?discrete?fourier?transform
basic?linear?algebra?and?random?number?generation.

“““
from?__future__?import?division?print_function

DOCLINES?=?(__doc__?or?‘‘).split(“\n“)

import?os
import?sys
import?subprocess
import?textwrap


if?sys.version_info[:2]?????raise?RuntimeError(“Python?version?2.6?2.7?or?>=?3.2?required.“)

if?sys.version_info[0]?>=?3:
????import?builtins
else:
????import?__builtin__?as?builtins


CLASSIFIERS?=?“““\
Development?Status?::?5?-?Production/Stable
Intended?Audience?::?Science/Research
Intended?Audience?::?Developers
License?::?OSI?Approved
Programming?Language?::?C
Programming?Language?::?Python
Programming?Language?::?Python?::?2
Programming?Language?::?Python?::?2.6
Programming?Language?::?Python?::?2.7
Programming?Language?::?Python?::?3
Programming?Language?::?Python?::?3.2
Programming?Language?::?Python?::?3.3
Programming?Language?::?Python?::?3.4
Programming?Language?::?Python?::?3.5
Programming?Language?::?Python?::?Implementation?::?CPython
Topic?::?Software?Development
Topic?::?Scientific/Engineering
Operating?System?::?Microsoft?::?Windows
Operating?System?::?POSIX
Operating?System?::?Unix
Operating?System?::?MacOS
“““

MAJOR???????????????=?1
MINOR???????????????=?11
MICRO???????????????=?2
ISRELEASED??????????=?True
VERSION?????????????=?‘%d.%d.%d‘?%?(MAJOR?MINOR?MICRO)


#?Return?the?git?revision?as?a?string
def?git_version():
????def?_minimal_ext_cmd(cmd):
????????#?construct?minimal?environment
????????env?=?{}
????????for?k?in?[‘SYSTEMROOT‘?‘PATH‘]:
????????????v?=?os.environ.get(k)
????????????if?v?is?not?None:
????????????????env[k]?=?v
????????#?LANGUAGE?is?used?on?win32
????????env[‘LANGUAGE‘]?=?‘C‘
????????env[‘LANG‘]?=?‘C‘
????????env[‘LC_ALL‘]?=?‘C‘
????????out?=?subprocess.Popen(cmd?stdout?=?subprocess.PIPE?env=env).communicate()[0]
????????return?out

????try:
????????out?=?_minimal_ext_cmd([‘git‘?‘rev-parse‘?‘HEAD‘])
????????GIT_REVISION?=?out.strip().decode(‘a(chǎn)scii‘)
????except?OSError:
????????GIT_REVISION?=?“Unknown“

????return?GIT_REVISION

#?BEFORE?importing?setuptools?remove?MANIFEST.?Otherwise?it?may?not?be
#?properly?updated?when?the?contents?of?directories?change?(true?for?distutils
#?not?sure?about?setuptools).
if?os.path.exists(‘MANIFEST‘):
????os.remove(‘MANIFEST‘)

#?This?is?a?bit?hackish:?we?are?setting?a?global?variable?so?that?the?

評(píng)論

共有 條評(píng)論