排行榜

  • 用户榜
  • 冲榜分奖金

频道

最新最热悬赏待采纳 筛选
  • 0

    回答

  • 3

    浏览

Searching for pip Reading https://pypi.python.org/simple/pip/ Best match: pip 21.0.1 Downloading https://files.pythonhosted.org/packages/b7/2d/ad02de84a4c9fd3b1958dc9fb72764de1aa2605a9d7e943837be6ad82337/pip-21.0.1.tar.gz#sha256=99bbde183ec5ec037318e774b0d8ae0a64352fe53b2c7fd630be1d07e94f41e5 Processing pip-21.0.1.tar.gz Writing /tmp/easy_install-n2IMbU/pip-21.0.1/setup.cfg Running pip-21.0.1/setup.py -q bdist_egg --dist-dir /tmp/easy_install-n2IMbU/pip-21.0.1/egg-dist-tmp-e0uhlg /System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/distutils/dist.py:267: UserWarning: Unknown distribution option: 'project_urls'   warnings.warn(msg) /System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/distutils/dist.py:267: UserWarning: Unknown distribution option: 'python_requires'   warnings.warn(msg) warning: no files found matching 'docs/docutils.conf' warning: no previously-included files found matching '.coveragerc' warning: no previously-included files found matching '.mailmap' warning: no previously-included files found matching '.appveyor.yml' warning: no previously-included files found matching '.travis.yml' warning: no previously-included files found matching '.readthedocs.yml' warning: no previously-included files found matching '.pre-commit-config.yaml' warning: no previously-included files found matching 'tox.ini' warning: no previously-included files found matching 'noxfile.py' warning: no files found matching '*.css' under directory 'docs' warning: no previously-included files found matching 'src/pip/_vendor/six' warning: no previously-included files found matching 'src/pip/_vendor/six/moves' warning: no previously-included files matching '*.pyi' found under directory 'src/pip/_vendor' no previously-included directories found matching '.github' no previously-included directories found matching '.azure-pipelines' no previously-included directories found matching 'docs/build' no previously-included directories found matching 'news' no previously-included directories found matching 'tasks' no previously-included directories found matching 'tests' no previously-included directories found matching 'tools'   File "build/bdist.macosx-10.14-intel/egg/pip/_internal/configuration.py", line 167     raise ConfigurationError(f"No such key - {key}")                                                   ^ SyntaxError: invalid syntax     File "build/bdist.macosx-10.14-intel/egg/pip/_internal/network/auth.py", line 202     ), f"Could not load credentials from url: {original_url}"                                                             ^ SyntaxError: invalid syntax     File "build/bdist.macosx-10.14-intel/egg/pip/_internal/network/session.py", line 321     msg = f'adding trusted host: {host!r}'                                          ^ SyntaxError: invalid syntax     File "build/bdist.macosx-10.14-intel/egg/pip/_internal/network/lazy_wheel.py", line 193     headers['Range'] = f'bytes={start}-{end}'                                             ^ SyntaxError: invalid syntax     File "build/bdist.macosx-10.14-intel/egg/pip/_internal/utils/logging.py", line 123     prefix = f"{self.formatTime(record)} "                                          ^ SyntaxError: invalid syntax     File "build/bdist.macosx-10.14-intel/egg/pip/_internal/utils/misc.py", line 117     return f"{sys.executable} -m pip"                                     ^ SyntaxError: invalid syntax     File "build/bdist.macosx-10.14-intel/egg/pip/_internal/utils/direct_url_helpers.py", line 91     hash = f"{hash_name}={link.hash}"                                     ^ SyntaxError: invalid syntax     File "build/bdist.macosx-10.14-intel/egg/pip/_internal/utils/temp_dir.py", line 154     f"Attempted to access deleted path: {self._path}"                                                     ^ SyntaxError: invalid syntax     File "build/bdist.macosx-10.14-intel/egg/pip/_internal/utils/pkg_resources.py", line 27     e.reason += f" in {name} file"                                  ^ SyntaxError: invalid syntax     File "build/bdist.macosx-10.14-intel/egg/pip/_internal/utils/compatibility_tags.py", line 119     return f"{implementation}{version}"                                       ^ SyntaxError: invalid syntax     File "build/bdist.macosx-10.14-intel/egg/pip/_internal/utils/hashes.py", line 88     f'Unknown hash name: {hash_name}'                                     ^ SyntaxError: invalid syntax     File "build/bdist.macosx-10.14-intel/egg/pip/_internal/utils/wheel.py", line 60     p for p in wheel_zip.namelist() if p.startswith(f"{info_dir}/")                                                                  ^ SyntaxError: invalid syntax     File "build/bdist.macosx-10.14-intel/egg/pip/_internal/utils/unpacking.py", line 276     f'Cannot determine archive format of {location}'                                                    ^ SyntaxError: invalid syntax     File "build/bdist.macosx-10.14-intel/egg/pip/_internal/models/link.py", line 86     rp = f' (requires-python:{self.requires_python})'                                                     ^ SyntaxError: invalid syntax     File "build/bdist.macosx-10.14-intel/egg/pip/_internal/models/direct_url.py", line 49     raise DirectUrlValidationError(f"{key} must have a value")                                                             ^ SyntaxError: invalid syntax     File "build/bdist.macosx-10.14-intel/egg/pip/_internal/models/target_python.py", line 89     f'{key}={value!r}' for key, value in key_values                      ^ SyntaxError: invalid syntax     File "build/bdist.macosx-10.14-intel/egg/pip/_internal/models/wheel.py", line 33     f"{filename} is not a valid wheel filename."                                                ^ SyntaxError: invalid syntax     File "build/bdist.macosx-10.14-intel/egg/pip/_internal/cli/cmdoptions.py", line 49     msg = f'{option} error: {msg}'                                  ^ SyntaxError: invalid syntax     File "build/bdist.macosx-10.14-intel/egg/pip/_internal/cli/parser.py", line 84     description = f'{label}:\n{description}\n'                                              ^ SyntaxError: invalid syntax     File "build/bdist.macosx-10.14-intel/egg/pip/_internal/cli/base_command.py", line 57     'prog': f'{get_prog()} {name}',                                  ^ SyntaxError: invalid syntax     File "build/bdist.macosx-10.14-intel/egg/pip/_internal/cli/main_parser.py", line 86     msg = [f'unknown command "{cmd_name}"']                                          ^ SyntaxError: invalid syntax     File "build/bdist.macosx-10.14-intel/egg/pip/_internal/cli/progress_bars.py", line 155     return f"eta {self.eta_td}"  # type: ignore                               ^ SyntaxError: invalid syntax     File "build/bdist.macosx-10.14-intel/egg/pip/_internal/cli/main.py", line 60     sys.stderr.write(f"ERROR: {exc}")                                    ^ SyntaxError: invalid syntax     File "build/bdist.macosx-10.14-intel/egg/pip/_internal/operations/install/legacy.py", line 71     f"Running setup.py install for {req_name}"                                              ^ SyntaxError: invalid syntax     File "build/bdist.macosx-10.14-intel/egg/pip/_internal/operations/install/wheel.py", line 363     f'pip{get_major_minor_version()} = {pip_script}'                                                    ^ SyntaxError: invalid syntax     File "build/bdist.macosx-10.14-intel/egg/pip/_internal/operations/freeze.py", line 56     yield f'-f {link}'                      ^ SyntaxError: invalid syntax     File "build/bdist.macosx-10.14-intel/egg/pip/_internal/operations/build/wheel_legacy.py", line 26     text = f'Command arguments: {command_desc}\n'                                                 ^ SyntaxError: invalid syntax     File "build/bdist.macosx-10.14-intel/egg/pip/_internal/operations/build/metadata_legacy.py", line 29     f"No .egg-info directory found in {directory}"                                                  ^ SyntaxError: invalid syntax     File "build/bdist.macosx-10.14-intel/egg/pip/_internal/operations/build/wheel.py", line 37     f'Building wheel for {name} (PEP 517)'                                          ^ SyntaxError: invalid syntax     File "build/bdist.macosx-10.14-intel/egg/pip/_internal/req/req_install.py", line 229     s += f' (from {comes_from})'                                ^ SyntaxError: invalid syntax     File "build/bdist.macosx-10.14-intel/egg/pip/_internal/req/__init__.py", line 29     return f"InstallationResult(name={self.name!r})"                                                    ^ SyntaxError: invalid syntax     File "build/bdist.macosx-10.14-intel/egg/pip/_internal/req/req_file.py", line 204     line_source = f'line {line.lineno} of {line.filename}'                                                          ^ SyntaxError: invalid syntax     File "build/bdist.macosx-10.14-intel/egg/pip/_internal/req/constructors.py", line 113     if url.lower().startswith(f'{version_control}:'):                                                   ^ SyntaxError: invalid syntax     File "build/bdist.macosx-10.14-intel/egg/pip/_internal/resolution/resolvelib/factory.py", line 429     req_disp = f'{req} (from {parent.name})'                                            ^ SyntaxError: invalid syntax     File "build/bdist.macosx-10.14-intel/egg/pip/_internal/resolution/resolvelib/requirements.py", line 125     return f"Python {self.specifier}"                                     ^ SyntaxError: invalid syntax     File "build/bdist.macosx-10.14-intel/egg/pip/_internal/resolution/resolvelib/candidates.py", line 91     line = f"{project_name} @ {template.link.url}"                                                  ^ SyntaxError: invalid syntax     File "build/bdist.macosx-10.14-intel/egg/pip/_internal/vcs/git.py", line 156     raise ValueError(f'unexpected show-ref line: {line!r}')                                                          ^ SyntaxError: invalid syntax     File "build/bdist.macosx-10.14-intel/egg/pip/_internal/vcs/versioncontrol.py", line 72     req = f'{repo_url}@{rev}#egg={egg_project_name}'                                                    ^ SyntaxError: invalid syntax     File "build/bdist.macosx-10.14-intel/egg/pip/_internal/index/collector.py", line 450     _handle_get_page_fail(link, f"connection error: {exc}")                                                          ^ SyntaxError: invalid syntax     File "build/bdist.macosx-10.14-intel/egg/pip/_internal/index/package_finder.py", line 164     return (False, f'yanked for reason: {reason}')                                                 ^ SyntaxError: invalid syntax     File "build/bdist.macosx-10.14-intel/egg/pip/_internal/exceptions.py", line 219     return f'    {self._requirement_name()}'                                            ^ SyntaxError: invalid syntax     File "build/bdist.macosx-10.14-intel/egg/pip/_internal/commands/configuration.py", line 224     env_var = f'PIP_{key.upper()}'                                  ^ SyntaxError: invalid syntax     File "build/bdist.macosx-10.14-intel/egg/pip/_internal/commands/cache.py", line 157     results.append(f' - {wheel} ({size})')                                         ^ SyntaxError: invalid syntax     File "build/bdist.macosx-10.14-intel/egg/pip/_internal/commands/debug.py", line 70     f'pip._vendor.{module_name}',                                ^ SyntaxError: invalid syntax     File "build/bdist.macosx-10.14-intel/egg/pip/_internal/commands/help.py", line 35     msg = [f'unknown command "{cmd_name}"']                                          ^ SyntaxError: invalid syntax     File "build/bdist.macosx-10.14-intel/egg/pip/_internal/distributions/sdist.py", line 55     f'{installed} is incompatible with {wanted}'                                                ^ SyntaxError: invalid syntax     File "build/bdist.macosx-10.14-intel/egg/pip/_internal/distributions/base.py", line 14     class AbstractDistribution(metaclass=abc.ABCMeta):                                         ^ SyntaxError: invalid syntax     File "build/bdist.macosx-10.14-intel/egg/pip/_internal/locations.py", line 107     assert not (user and prefix), f"user={user} prefix={prefix}"                                                                ^ SyntaxError: invalid syntax     File "build/bdist.macosx-10.14-intel/egg/pip/_internal/self_outdated_check.py", line 184     pip_cmd = f"{sys.executable} -m pip"                                        ^ SyntaxError: invalid syntax   creating /Library/Python/2.7/site-packages/pip-21.0.1-py2.7.egg Extracting pip-21.0.1-py2.7.egg to /Library/Python/2.7/site-packages   File "/Library/Python/2.7/site-packages/pip-21.0.1-py2.7.egg/pip/_internal/configuration.py", line 167     raise ConfigurationError(f"No such key - {key}")                                                   ^ SyntaxError: invalid syntax     File "/Library/Python/2.7/site-packages/pip-21.0.1-py2.7.egg/pip/_internal/exceptions.py", line 219     return f'    {self._requirement_name()}'                                            ^ SyntaxError: invalid syntax     File "/Library/Python/2.7/site-packages/pip-21.0.1-py2.7.egg/pip/_internal/locations.py", line 107     assert not (user and prefix), f"user={user} prefix={prefix}"                                                                ^ SyntaxError: invalid syntax     File "/Library/Python/2.7/site-packages/pip-21.0.1-py2.7.egg/pip/_internal/self_outdated_check.py", line 184     pip_cmd = f"{sys.executable} -m pip"                                        ^ SyntaxError: invalid syntax     File "/Library/Python/2.7/site-packages/pip-21.0.1-py2.7.egg/pip/_internal/network/auth.py", line 202     ), f"Could not load credentials from url: {original_url}"                                                             ^ SyntaxError: invalid syntax     File "/Library/Python/2.7/site-packages/pip-21.0.1-py2.7.egg/pip/_internal/network/session.py", line 321     msg = f'adding trusted host: {host!r}'                                          ^ SyntaxError: invalid syntax     File "/Library/Python/2.7/site-packages/pip-21.0.1-py2.7.egg/pip/_internal/network/lazy_wheel.py", line 193     headers['Range'] = f'bytes={start}-{end}'                                             ^ SyntaxError: invalid syntax     File "/Library/Python/2.7/site-packages/pip-21.0.1-py2.7.egg/pip/_internal/utils/logging.py", line 123     prefix = f"{self.formatTime(record)} "                                          ^ SyntaxError: invalid syntax     File "/Library/Python/2.7/site-packages/pip-21.0.1-py2.7.egg/pip/_internal/utils/misc.py", line 117     return f"{sys.executable} -m pip"                                     ^ SyntaxError: invalid syntax     File "/Library/Python/2.7/site-packages/pip-21.0.1-py2.7.egg/pip/_internal/utils/direct_url_helpers.py", line 91     hash = f"{hash_name}={link.hash}"                                     ^ SyntaxError: invalid syntax     File "/Library/Python/2.7/site-packages/pip-21.0.1-py2.7.egg/pip/_internal/utils/temp_dir.py", line 154     f"Attempted to access deleted path: {self._path}"                                                     ^ SyntaxError: invalid syntax     File "/Library/Python/2.7/site-packages/pip-21.0.1-py2.7.egg/pip/_internal/utils/pkg_resources.py", line 27     e.reason += f" in {name} file"                                  ^ SyntaxError: invalid syntax     File "/Library/Python/2.7/site-packages/pip-21.0.1-py2.7.egg/pip/_internal/utils/compatibility_tags.py", line 119     return f"{implementation}{version}"                                       ^ SyntaxError: invalid syntax     File "/Library/Python/2.7/site-packages/pip-21.0.1-py2.7.egg/pip/_internal/utils/hashes.py", line 88     f'Unknown hash name: {hash_name}'                                     ^ SyntaxError: invalid syntax     File "/Library/Python/2.7/site-packages/pip-21.0.1-py2.7.egg/pip/_internal/utils/wheel.py", line 60     p for p in wheel_zip.namelist() if p.startswith(f"{info_dir}/")                                                                  ^ SyntaxError: invalid syntax     File "/Library/Python/2.7/site-packages/pip-21.0.1-py2.7.egg/pip/_internal/utils/unpacking.py", line 276     f'Cannot determine archive format of {location}'                                                    ^ SyntaxError: invalid syntax     File "/Library/Python/2.7/site-packages/pip-21.0.1-py2.7.egg/pip/_internal/models/link.py", line 86     rp = f' (requires-python:{self.requires_python})'                                                     ^ SyntaxError: invalid syntax     File "/Library/Python/2.7/site-packages/pip-21.0.1-py2.7.egg/pip/_internal/models/direct_url.py", line 49     raise DirectUrlValidationError(f"{key} must have a value")                                                             ^ SyntaxError: invalid syntax     File "/Library/Python/2.7/site-packages/pip-21.0.1-py2.7.egg/pip/_internal/models/target_python.py", line 89     f'{key}={value!r}' for key, value in key_values                      ^ SyntaxError: invalid syntax     File "/Library/Python/2.7/site-packages/pip-21.0.1-py2.7.egg/pip/_internal/models/wheel.py", line 33     f"{filename} is not a valid wheel filename."                                                ^ SyntaxError: invalid syntax     File "/Library/Python/2.7/site-packages/pip-21.0.1-py2.7.egg/pip/_internal/cli/cmdoptions.py", line 49     msg = f'{option} error: {msg}'                                  ^ SyntaxError: invalid syntax     File "/Library/Python/2.7/site-packages/pip-21.0.1-py2.7.egg/pip/_internal/cli/parser.py", line 84     description = f'{label}:\n{description}\n'                                              ^ SyntaxError: invalid syntax     File "/Library/Python/2.7/site-packages/pip-21.0.1-py2.7.egg/pip/_internal/cli/base_command.py", line 57     'prog': f'{get_prog()} {name}',                                  ^ SyntaxError: invalid syntax     File "/Library/Python/2.7/site-packages/pip-21.0.1-py2.7.egg/pip/_internal/cli/main_parser.py", line 86     msg = [f'unknown command "{cmd_name}"']                                          ^ SyntaxError: invalid syntax     File "/Library/Python/2.7/site-packages/pip-21.0.1-py2.7.egg/pip/_internal/cli/progress_bars.py", line 155     return f"eta {self.eta_td}"  # type: ignore                               ^ SyntaxError: invalid syntax     File "/Library/Python/2.7/site-packages/pip-21.0.1-py2.7.egg/pip/_internal/cli/main.py", line 60     sys.stderr.write(f"ERROR: {exc}")                                    ^ SyntaxError: invalid syntax     File "/Library/Python/2.7/site-packages/pip-21.0.1-py2.7.egg/pip/_internal/operations/freeze.py", line 56     yield f'-f {link}'                      ^ SyntaxError: invalid syntax     File "/Library/Python/2.7/site-packages/pip-21.0.1-py2.7.egg/pip/_internal/operations/install/legacy.py", line 71     f"Running setup.py install for {req_name}"                                              ^ SyntaxError: invalid syntax     File "/Library/Python/2.7/site-packages/pip-21.0.1-py2.7.egg/pip/_internal/operations/install/wheel.py", line 363     f'pip{get_major_minor_version()} = {pip_script}'                                                    ^ SyntaxError: invalid syntax     File "/Library/Python/2.7/site-packages/pip-21.0.1-py2.7.egg/pip/_internal/operations/build/wheel_legacy.py", line 26     text = f'Command arguments: {command_desc}\n'                                                 ^ SyntaxError: invalid syntax     File "/Library/Python/2.7/site-packages/pip-21.0.1-py2.7.egg/pip/_internal/operations/build/metadata_legacy.py", line 29     f"No .egg-info directory found in {directory}"                                                  ^ SyntaxError: invalid syntax     File "/Library/Python/2.7/site-packages/pip-21.0.1-py2.7.egg/pip/_internal/operations/build/wheel.py", line 37     f'Building wheel for {name} (PEP 517)'                                          ^ SyntaxError: invalid syntax     File "/Library/Python/2.7/site-packages/pip-21.0.1-py2.7.egg/pip/_internal/req/req_install.py", line 229     s += f' (from {comes_from})'                                ^ SyntaxError: invalid syntax     File "/Library/Python/2.7/site-packages/pip-21.0.1-py2.7.egg/pip/_internal/req/__init__.py", line 29     return f"InstallationResult(name={self.name!r})"                                                    ^ SyntaxError: invalid syntax     File "/Library/Python/2.7/site-packages/pip-21.0.1-py2.7.egg/pip/_internal/req/req_file.py", line 204     line_source = f'line {line.lineno} of {line.filename}'                                                          ^ SyntaxError: invalid syntax     File "/Library/Python/2.7/site-packages/pip-21.0.1-py2.7.egg/pip/_internal/req/constructors.py", line 113     if url.lower().startswith(f'{version_control}:'):                                                   ^ SyntaxError: invalid syntax     File "/Library/Python/2.7/site-packages/pip-21.0.1-py2.7.egg/pip/_internal/resolution/resolvelib/factory.py", line 429     req_disp = f'{req} (from {parent.name})'                                            ^ SyntaxError: invalid syntax     File "/Library/Python/2.7/site-packages/pip-21.0.1-py2.7.egg/pip/_internal/resolution/resolvelib/requirements.py", line 125     return f"Python {self.specifier}"                                     ^ SyntaxError: invalid syntax     File "/Library/Python/2.7/site-packages/pip-21.0.1-py2.7.egg/pip/_internal/resolution/resolvelib/candidates.py", line 91     line = f"{project_name} @ {template.link.url}"                                                  ^ SyntaxError: invalid syntax     File "/Library/Python/2.7/site-packages/pip-21.0.1-py2.7.egg/pip/_internal/vcs/git.py", line 156     raise ValueError(f'unexpected show-ref line: {line!r}')                                                          ^ SyntaxError: invalid syntax     File "/Library/Python/2.7/site-packages/pip-21.0.1-py2.7.egg/pip/_internal/vcs/versioncontrol.py", line 72     req = f'{repo_url}@{rev}#egg={egg_project_name}'                                                    ^ SyntaxError: invalid syntax     File "/Library/Python/2.7/site-packages/pip-21.0.1-py2.7.egg/pip/_internal/index/collector.py", line 450     _handle_get_page_fail(link, f"connection error: {exc}")                                                          ^ SyntaxError: invalid syntax     File "/Library/Python/2.7/site-packages/pip-21.0.1-py2.7.egg/pip/_internal/index/package_finder.py", line 164     return (False, f'yanked for reason: {reason}')                                                 ^ SyntaxError: invalid syntax     File "/Library/Python/2.7/site-packages/pip-21.0.1-py2.7.egg/pip/_internal/commands/configuration.py", line 224     env_var = f'PIP_{key.upper()}'                                  ^ SyntaxError: invalid syntax     File "/Library/Python/2.7/site-packages/pip-21.0.1-py2.7.egg/pip/_internal/commands/cache.py", line 157     results.append(f' - {wheel} ({size})')                                         ^ SyntaxError: invalid syntax     File "/Library/Python/2.7/site-packages/pip-21.0.1-py2.7.egg/pip/_internal/commands/debug.py", line 70     f'pip._vendor.{module_name}',                                ^ SyntaxError: invalid syntax     File "/Library/Python/2.7/site-packages/pip-21.0.1-py2.7.egg/pip/_internal/commands/help.py", line 35     msg = [f'unknown command "{cmd_name}"']                                          ^ SyntaxError: invalid syntax     File "/Library/Python/2.7/site-packages/pip-21.0.1-py2.7.egg/pip/_internal/distributions/sdist.py", line 55     f'{installed} is incompatible with {wanted}'                                                ^ SyntaxError: invalid syntax     File "/Library/Python/2.7/site-packages/pip-21.0.1-py2.7.egg/pip/_internal/distributions/base.py", line 14     class AbstractDistribution(metaclass=abc.ABCMeta):                                         ^ SyntaxError: invalid syntax   Adding pip 21.0.1 to easy-install.pth file Installing pip script to /usr/local/bin Installing pip2.7 script to /usr/local/bin Installing pip2 script to /usr/local/bin   Installed /Library/Python/2.7/site-packages/pip-21.0.1-py2.7.egg Processing dependencies for pip Finished processing dependencies for pip 192:~ wangjing$ pip -V Traceback (most recent call last):   File "/usr/local/bin/pip", line 9, in <module>     load_entry_point('pip==21.0.1', 'console_scripts', 'pip')()   File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/pkg_resources/__init__.py", line 565, in load_entry_point     return get_distribution(dist).load_entry_point(group, name)   File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/pkg_resources/__init__.py", line 2697, in load_entry_point     return ep.load()   File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/pkg_resources/__init__.py", line 2370, in load     return self.resolve()   File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/pkg_resources/__init__.py", line 2376, in resolve     module = __import__(self.module_name, fromlist=['__name__'], level=0)   File "/Library/Python/2.7/site-packages/pip-21.0.1-py2.7.egg/pip/_internal/cli/main.py", line 60     sys.stderr.write(f"ERROR: {exc}")                                    ^ SyntaxError: invalid syntax

  • 0

    回答

  • 2

    浏览

按照网上的教程,想将Pycharm的python2.7的版本切换到3.9,已经在电脑上安装过python3.9了,在终端中输入which python3命令,也能显示出python3.9安装的位置,但是在Pycharm中,在prferences里面切换3.9,OK点不动,哪位老师知道原因呀?  

  • 0

    回答

  • 1

    浏览

axure如何实现如何让筛选过内容后的中继器跳转到不同页面,实际使用场景就是比如我有一个搜索框,输入内容进行搜索,搜索结果出来后如何点击该结果跳转至其他页面呢?希望有人解答,非常感谢

  • 0

    回答

  • 3

    浏览

我想问下PropertyValues中的值是从类的那个地方得到的? 我每次Debug得到的pvs都是空的。 字面意思是属性值,可是属性值不是在AutowiredAnnotationBeanPostProcessor的postProcessProperties()中通过反射放到了@Autowired标记的属性上了吗? 求大佬解答。  

  • 0

    回答

  • 6

    浏览

输入一个3行4列的数组,采用二维数组指针操作方法将二维数组转置,并将转置后的数组每个元素地址及其元素值打印出来: 例如: 输入 3 4 5 7 7 8 5 6 9 2 3 1 输出 第一种指针操作输出 数组地址如下(每台机器不一样) E3287 E3288 E3289 E3891 E3292 E3293 E3295 E3296 E9297 E3290 E3298 E3294 数组元素如下 3 7 9 4 8 2 5 5 3 7 6 1 第二种指针操作输出 数组地址如下(每台机器不一样) E3287 E3288 E3289 E3891 E3292 E3293 E3295 E3296 E9297 E3290 E3298 E3294 数组元素如下 3 7 9 4 8 2 5 5 3 7 6 1

  • 0

    回答

  • 4

    浏览

pycharm和notebook中import同样的Numpy库就没有问题,在sublime text 3里就会提示 <DLL load failed while importing _multiarray_umath:找不到指定模块>,错误提示可能和numpy的安装方式有关。我试过在conda里用pip重新安装numpy,numpy就可以正常import,但是这会导致conda环境出问题,在使用某些其他库的时候也会出错,所以感觉治标不治本。想知道有没有同时使用sublime和anaconda的朋友遇到过这个问题吗,具体是怎么解决的?

  • 0

    回答

  • 4

    浏览

c语言用十字链表实现学生信息的添加删除查找 跪求大佬帮忙

  • 0

    回答

  • 6

    浏览

app=Flask('__name__')   @app.route('/') def index():     return render_template('first.html')   @app.route('/<render>') def index0(render):     return render_template('render.html')   @app.route('/<beijing>') def index1(beijing):     return render_template('beijing.html')   @app.route('/<anhui>') def index2(anhui):     return render_template('anhui.html') if __name__=='__main__':     app.run(debug=True) 出来的所有页面结果都是render.html页面,这是怎么回事?

  • 0

    回答

  • 2

    浏览

想问问为什么代码这样然后运行出来是这样的 题目:这是一道你可以在10秒内完成的题:给定两个绝对值不超过100的整数A和B,输出A乘以B的值。 代码: #include int main() { int a,b; scanf("%d%d",&a,&b); printf("%d\n”,a*b); return 0; }

  • 0

    回答

  • 6

    浏览

如果一个分数的分子和分母的最大公约数是 1,这个分数称为既约分数。 例如,3/4, 5/2, 1/8, 7/1 都是既约分数。 请问,有多少个既约分数,分子和分母都是 1 到 2020 之间的整数(包括 1和 2020)? #include<stdio.h> int main() {     int a=0,b,c,i,j,e=4039;     for(i=2;i<2021;i++)         for(j=2;j<2021;j++)         {             if(i<j)             a=j;             if(i>j)             a=i;             if(i==j)             c++;             for(a;a>1;a--)             {                 if(i%a==0&&j%a==0)                 c++;                 else                 e++;                 }         }          printf("%d",e);     return 0; } 不知道错在那里了

  • 1

    回答

  • 8

    浏览

有淘宝新店旺旺号,可以转化手机号吗?

  • 0

    回答

  • 3

    浏览

网页的div元素很多,写完了html,再写css时是给所有元素都加上实线边框吗?具体怎么加?这样我写的时候,修改的时候看着直观。求解?谢谢!

回答 HermioneZhou
采纳率100%
4小时前
  • 0

    回答

  • 3

    浏览

jdk安装了指定的1.8.0版本,环境变量也配置了,最后在unity编辑界面安置jdk路径时就是不对,,,有大佬知道吗,,, 

  • 0

    回答

  • 2

    浏览

在V-REP中构建了一个小车,在小车前端加了一个接近传感器,但是不管前方有没有障碍物,探测出来的结果都没有变化。使用MATLAB的远程API功能进行编程。在MATLAB中调用了simxReadProximity函数来进行读取。

  • 0

    回答

  • 3

    浏览

有大佬能救救孩子吗,都想一晚上了,为什么不可以直接调用其他文件的函数

  • 0

    回答

  • 5

    浏览

下图是我写的代码,利用结构体作了一个简单的电话号码存贮输入,写的有些懵懵懂懂,不知道怎么结束输入的循环,求大佬指导下! #include <stdio.h> typedef struct phone { char name[50]; int num; char e_mail; }PH; void input(PH *pphe) { printf("请输入姓名 电话号码 电子邮箱:\n"); scanf("%s %d %s",pphe->name,&pphe->num,pphe->e_mail); } void output(PH phe) { printf("姓名:%s\n",phe.name); printf("电话号码:%d\n",phe.num); printf("电子邮箱:%s\n",phe.e_mail); } int main(int argc,const char* argv[]) { PH phe[128] = {0}; for(int i=0;i<128;i++) input(&phe[i]); for(int i=0;i<128;i++) output(phe[i]); return 0; }  

回答 烛萤火
采纳率100%
4小时前
  • 0

    回答

  • 5

    浏览

<?php namespace Core; class Model{ private $table; public function __construct($table=''){ if ($table!='') $this->table=$table; else{ $this->table=substr(basename(get_class($this)),0,-5); // $this->table=Products; } echo $this->table,'<br>'; } } namespace Model; class ProductsModel extends \Core\Model{ } new \Core\Model('news'); new \Model\ProductsModel();

回答 qq_39551319
采纳率100%
4小时前
  • 0

    回答

  • 3

    浏览

大佬们好,我这两天在配置Nginx的时候遇到了问题,啃了两天Nginx无果,最终想请教一下大佬们。 需求是这样的,我有一个网址例如 https://www.abc.com ,我需要在访问子目录 /web 的时候访问我的 tomcat  比如 https://www.abc.com/web 需要转到 http://127.0.0.1:18303/  一开始这样配置是没有问题的,如下是我的配置 location /web/ { add_header Content-Security-Policy upgrade-insecure-requests; proxy_pass http://127.0.0.1:18303/; }   确实可以访问得到,但是当我按下 tomcat 页面上的按钮的时候我发现它不再走 /web 节点 就报了 404 并且 tomcat 的资源也无法获取,请问有什么办法可以解决吗? 我想要它自动加上 /web 并跳转 nginx 日志显示,他发送的是GET请求,如果是这样的话能否在我当前的页面路径下GET,而不是一同把我的子目录 /web 也给改写了呢? 能否在不通过 tomcat 服务去处理该请求的情况下,交给 Nginx 去处理? 小弟先在这里谢过各位神仙大佬了。

  • 0

    回答

  • 5

    浏览

<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Document</title> <script> function show() { console.log(arguments.length); alert(arguments[0]) } window.onload = function () { var Btn = document.getElementById("btn"); Btn.onclick = show; } </script> </head> <body> <button id="btn">按钮</button> </body> </html> 问题一:事件绑定不是应该是:元素节点.on + 事件类型 = 匿名函数; 那么Btn.onclick = show;show就不是匿名函数为什么可以这么写? 问题二:Btn.onclick = show();当我给show加()的时候为什么刷新页面就变成undefined了? 问题三:Btn.onclick = show;这段代码的意思是不是把点击事件作为形参传入function show()函数内,但是show()是没有形参的,为什么可以传入形参?

回答 m0_46602893
采纳率100%
4小时前
  • 3

    回答

  • 10

    浏览

把and改成and以后,不管输入多少出来的值都是1 这是出了什么问题呀

  • 0

    回答

  • 1

    浏览

大佬们,MySQL总是莫名其妙的报1045错误,还处理不了,这是啥原因啊?版本是5.0.87好像

  • 1

    回答

  • 3

    浏览

为什么只有数据库中第一条数据是可以查询的

回答 qq_42486606
采纳率0%
5小时前
  • 0

    回答

  • 3

    浏览

怎么实现能可以正常复制空洞文件的cp命令? TLPI的第四章第二题,我的困惑是我在一个文件中空洞和\0都有写入,看了题解发现当时的cp命令好像是不能区分空洞和\0的。当时的cp简单判断文件中是否存着空洞,存在那么就算里面夹杂着\0,也会把\0看作空洞。 而我现在试了试,现在的cp命令已经可以正确复制空洞文件(里面写有大量\0的情况),好奇怎么实现的。我的是Ubuntu 20.04,源码是这个https://www.gnu.org/software/coreutils/ 我想正确写完这个作业,但是直接看源码看不懂。。。 引用博客的实验:

  • 1

    回答

  • 9

    浏览

java.lang.reflect.InvocationTargetException     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)     at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)     at java.lang.reflect.Method.invoke(Method.java:498)     at com.xszx.servlet.BaseServlet.service(BaseServlet.java:22)     at javax.servlet.http.HttpServlet.service(HttpServlet.java:733)     at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:231)     at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)     at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:53)     at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193) ==============false 你好     at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)     at com.xszx.filter.BookFilter.doFilter(BookFilter.java:27)     at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)     at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)     at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:202)     at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:96)     at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:541)     at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:139)     at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:92)     at org.apache.catalina.valves.AbstractAccessLogValve.invoke(AbstractAccessLogValve.java:690)     at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:74)     at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:343)     at org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:373)     at org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:65)     at org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:868)     at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1589)     at org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:49)     at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)     at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)     at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)     at java.lang.Thread.run(Thread.java:748) Caused by: java.lang.NullPointerException     at com.xszx.dao.impl.GoodsDaoImpl.searchPage(GoodsDaoImpl.java:282)     at com.xszx.servlet.GoodsServlet.goodssearch1(GoodsServlet.java:241)     at com.xszx.servlet.GoodsServlet.Goodslist(GoodsServlet.java:96)     ... 31 more

  • 0

    回答

  • 12

    浏览

拼多多app订单对接云闪付生成二维码,有没大佬能帮忙解决,在苹果手机里面生成,

  • 2

    回答

  • 10

    浏览

想问b是什么类型 a=(85,75,76) b=sorted(a)

回答 ting_shuo13
采纳率100%
5小时前
  • 0

    回答

  • 8

    浏览

题目:输入两个数字 ,输出类似ATM操作界面,把1,2,3,4选项修改成+,-,*,/并实现相应的算术计算功能,最后输出计算的结果。 (求各路大神解决一下这个难题,怪我上课不认真,呜呜) #include"stdio.h" main() { int pwd,select; printf("请输入银行卡密码:"); scanf("%d",&pwd); if(pwd==123456) { printf("-----------------------\n"); printf(" 1查询余额 2取款 \n"); printf(" 3存款 4转账 \n"); printf(" 5打印清单 6退卡 \n"); printf("-----------------------\n"); printf("请输入操作选项:"); scanf("%d",&select); switch(select) { case'+': printf("查询余额\n");break; case'-': printf("取款\n");break; case'*': printf("存款\n");break; case'/': printf("转账\n");break; case 5: printf("打印清单\n");break; case 6: printf("退卡\n");break; } } eles :printf("密码错误!\n"); }

  • 0

    回答

  • 1

    浏览

求助,我们学校让用IBMcloud 添加一个node-red,但是这个步骤国外和国内网站好像不一样,老师也没办法,只能自己想办法,求大神帮忙。(图一是英文,图二是中文,图三是中文全文,主要是图二的步骤弄不对)

  • 3

    回答

  • 24

    浏览

把两本书对照来读,发现很多有意思的地方, 在这里开个帖子讨论,欢迎提问和点评。  《Unix 传奇》 https://book.douban.com/subject/35292726/   《观止 微软创建NT和未来的夺命狂奔 》https://book.douban.com/subject/3699395/